A comment in php code is line that is not read and executed as a part of the programme. Its only perpose to be read by someone who is looking at the code . Comments helps someone what is happend with this code and Remind yourself of what you did. Comments reminds you what you were thinking when you wrote the code. PHP supports several ways of commenting:
2. # This is also the single line comment
This is multiple-lines comment block that
span over multipul lines.
In PHP Keywords Like: (if, else, while, etc.), classes , functions, and user define are not a case-sensitive. However all variable are case sensitive
e.g -> Only first statment will display the value of $color variable.
$color = "red";
echo "My car is". $color ."";
echo "My Shirt is". $COLOR ."";
echo "My hair is". $cOLOr ."";
1. Result: My car is red.
2. Result: My car is
3. Result: My car is