Learning PHP and MySQL

Example 03-05 Using comments to make your code easier to read

<html>
<
head>
<
title>Hello  World</title>
</
head>
<
body>
<?
php

//  A  single  line  comment  could  say  that  we  are  going  to
//  print  hello  world.

/*  This  is  how  to  do  a
multi-line  comment  and  could  be  used to  comment  out  a  block of  code  */

echo("Hello  world!<br  />");
print(
'Goodbye.<br  />');

?>
</body>
</html>

Posted by on 07/19 at 03:37 PM

Next entry: Example 03-07 The default handling of variable scope

Previous entry: PHP Variable

<< Back to main