Using Comments
The way of making any statement a comment is same as in C or C++ –

Basic Syntax
PHP’s syntax is quite easy but there are 2 things you need to keep in mind while writing code in it-
- PHP commands end with a semi-colon.
- You must place a $ in front of all variables.
Variables
Variables are the containers which hold some value, value of any type. Variables are used with ‘$’ in PHP. There is no need to specify the datatype of variable as in C language.
Remember, string variables can hold the value either in double or single quotes.
$name = “Harry”; or $name = ‘Harry’; both are equal.
