PHP Tutorial - #2 Comments

  Commenting Syntax   

In Programming, it's always practical (not to mention etiquette) to use notes, specifying each part of a script or program.

Comments are specified using a double forward slash (//) for one line or a forward slash and star (open comment) and star forward slash (close comment) to do multi-line commenting.

  Code  
<?php
/*Created by Cristoffer Fairweather
Version 1.0
PHP Tutorial Center*/

//Prints out Hello World.
print "Hello World";
?>
  Result  
Hello World

Continue >>

©Fairweather WebDesign 2007