Comments In php |
Example for single line comments (Screenshot1):-
Example for single line comments (Screenshot1) |
<?php
//Uses echo language construct to output the text "Hello World." to the Browser
//echo 'Hello world.";
?>
output(Screenshot2) :-
Screenshot2 |
In this codes we had comments codes and out comment both in “//” so will not display in browser it will only show to the coded file which is useful only for programmer to see program flow. we can also comments codes which had error but later useful we can comment them.
Example for single line comments (Screenshot3):-
Example for single line comments (Screenshot3):- |
<?php
//Uses echo language construct to output the text "Hello World." to the Browser
echo 'Hello world.";
Example for multiline Comments (Screenshot5):- |
<?php
/*
Author:Mohammed
Date:7/3/2013
*/
//Uses echo language construct to output the text "Hello World." to the Browser
echo 'Hello world.";
?>
Output (Screenshot6):-
Output (Screenshot6):- |
Mutliline comments is used for note in our codes.
No comments:
Post a Comment
Thanks For Comment Will get you Soon..