PHP comments:
Comments are ignored by PHP statement and it is more readable
There are two types of comment in PHP
1. Single line comment
2. Multiline comment
1.Single line comment:-
Single line comment starts with (//) or (#)
<?php //Single lime comment # Single lime comment ?>
2. Multiline comment:-
Multiline comment starts with /*.......*/
<?php //Single lime comment # Single lime comment /* This is multi line comment visit circuitcoder.com and cwipedia.in for php,java,c,c++,python and many more related to computer science*/ ?>
Example:
<!DOCTYPE html> <html> <head> <title>circuitcoder.com</title> </head> <body> <?php //Single lime comment # Single lime comment echo "Hi"; /* This is multi line comment visit circuitcoder.com and cwipedia.in for php,java,c,c++,python and many more related to computer science*/ echo " php"; ?> </body> </html>
Comments
Post a Comment
If you have any query, please let us know