Friday, May 2, 2014

PHP Comments

PHP supports 'C', 'C++' and Unix shell-style (Perl style) comments.
For example:
 <?php

 /* This will not print on the screen as it is a Comment.
   

*/

 //Uses echo language construct to output the text "Hello World." to the browser

echo 'Hello World'
?>
 
The Hello World will only be printed on the screen as it is not a comment.It is neither single line comment nor multiline comment.The above code is used by the programmer in order to check the errors in the Coding and to debug the PHP Coding.
Example:

No comments:

Post a Comment