Comments in php






A comment  in PHP code is a line that is not read/executed as part of the program. Its only purpose is to be read by someone who is looking at the code.

PHP support C, C++ and UNIX Shell-style comments. For example –


<?php

            //This is a one line C++ style comment

#This is a one-line shell-style comment.

            /*This is a multiline comment.
In this comment in you comment multiple line.*/

?>

Post a Comment

0 Comments