·  PHP – Syntax – Comments


- Info:

  - This tutorial shows how to write comments in PHP.

  - PHP supports both single line and multi line (block) comments.



Comment Type



Single line C++ Syntax

//Single line comment


Single line Shell Syntax

# Single line comment


Multiple-Line C Syntax

/* Multi line comment. */


- Example:

  - Create PHP Console Application Test.php.




      /* Multi line comment.

         Block comment.

         Multiple-Line C Syntax.  */

      echo("Hello World");  //Single line comment (Single line C++   Syntax).

      echo("Hello Again");  # Single line comment (Single line Shell Syntax).


P vs PE

ent to PERL by all