PHP comments are usually preceded by double slashes : Comments « Language Basics « PHP






PHP comments are usually preceded by double slashes

<?
// this is a comment in PHP code
echo "This is not a comment."
?>

           
       








Related examples in the same category

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