Operators in PHP

Operators in PHP have used for build a login and perform the task into the PHP and these are classified into the following group.

Groups of operators in PHP

Assignment Operators:

These operators are used for assign a value to a variable.

Example:

=

Comparison Operators:

These operators in PHP are used for compare two values or variables.

Example:

==
!=
<=
>=

Arithmetic Operators:

These operators are used for calculations and mathematical operations.

Example:

+

/
*

Output : 30

 

Note: The comparison operator “===” compares values as well as their datatypes.