Comments

There are three types of comments in PHP:

<html>
<head>
<title>PHP</title>
<meta Name="Author" Content="Hann So">
</head>
<body>
<p>
<?php
/* Start the text
   using an HTML tag too
*/
print <<<END
Displaying here documents <br />
until the end of the token. <br />
END;
// display a text
echo "Hello World<br />";
# display another text
echo "Welcome to PHP.";
?>
</p>
</body>
</html>

View the effect


Syntax | Basic Syntax | Text Strings | Here Document | Whitespace | Comments | Debugging Tips
© 2008: Hann So
email: hso@voyager.deanza.edu