This PHP Hello World tutorial will teach you how to use the PHP
Display String as Output
The following example shows how to use an echo statement to display "Hello World!".
<?php echo 'Hello, World!'; ?>
Display HTML Code as Output
The following example shows how to use echo statements to display an HTML Code.
<?php echo "<h1>Page Heading</h1>"; print "<p style='font-weight:bold; color:blue;'>This is a paragraph text that is styled with CSS.</p>"; ?>
This is a paragraph text that is styled with CSS.
echo both are language constructs, not functions. These two statements are substitutes and do exactly the same, except that the