Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

PHP comments

Sat Sep 06, 2008 3:57 pm

Comment is the part of code that is ignored .In html the comment is start with special character
"<!-- comment here > " and it is the same here in php. There are single line comments or multi-line comments .

example of one line comment
Code:
<?php 
    echo 
" Codemiles forums ";
 
// comment here
 #comment here
  


As you saw above "//" and "#"

example of multi-line comment

Code:
<?php 
    echo 
" Codemiles forums are cool";
  /*
   bla bla bla bla
   All these lines are for comment   

   */
  




Post a reply
  Related Posts  to : PHP comments
 jsp comments     -  
 Shell style comments     -  

Topic Tags

PHP Basics