Jayne Herbert
Server Side Programming (PHP) Course
CITN270 – September 2009

Home - assignment 1 - assignment 2


 

 

Code commenting notes

 


Comments in HTML code

This is an example using a single line comment with the html code


<!-- This is an HTML Comment -->


Comments in PHP code

This example uses the double slash for putting comments at the end of a single line of code

<?php echo "Hello World!"; // This will print Hello World! to the screen but nothing else?>

 

This example uses /* and */ to put in comments ove multiple lines

<?php /* This method of commenting can spread over multiple lines. This method of commenting can spread over multiple lines.*/ ?>

 

 

 

 

 


 

 

phpcourse.jayne-herbert.co.uk