Single Line Comments
PHP single line comment begins with //, See the example below:
Example
Try this code »<?php
echo "Hello World!"; // Output "Hello World!"
?>Multi-line Comments
PHP multi-line line comment begins with /*, and ends with */.
Example
Try this code »<?php
/* The following line of code
will output the "Hello World!" message */
echo "Hello World!";
?>
0 Comments