PHP supports C, C++ and Unix shell-style comments : Comments « Language Basics « PHP






PHP supports C, C++ and Unix shell-style comments

 
<?php
    echo "This is a test"; // This is a one-line c++ style comment
    /* This is a multi line comment
    yet another line of comment */
    echo "This is yet another test";
    echo "One Final Test"; # This is shell-style style comment
?>
  
  








Related examples in the same category

1.Shell style comments
2.PHP comments are usually preceded by double slashes
3.Php single line comment:#
4.Php more than single line comment
5.Combine three types of comment signs
6.A comment is text in a script that is ignored by the PHP engine.
7.shell style comments
8.In PHP, everything between /* and */ is considered a comment
9.Multiline comments
10.Multiline comments begin with a forward slash followed by an asterisk (/*) and end with an asterisk followed by a forward slash (*/)