PHP Comments

PHP Comments code is not executed. it's only for information. PHP supports 'C', 'C++' and Unix shell-style (Perl style) comments.

Comments in PHP

PHP single-line comments

//echo 'Hello';
//this is single line comment in c++ style

#echo  'Hello';
#this is single line comment in shell-style style

PHP multiple-line comments

/* This is a multi line comment
in php

PHP multiple-line comments using in parts of the code

$a = 2 /* + 3 */ + 4;
echo $a;