PHP tutorial-PHP operators
= sign is used as the assignment operator in PHP. The assignment operator is used to assing a value to a variable.
The comparison operators as shown below are used to compare two variables or expressions. The result of the comparison operation can be true or false.
Logical OperatorsThe logical operations are used to do the logical operations of two variables or expressions. We have three logical operators in PHP. The && operator represents the logical and operation. The || operator represents the logical or operation. And the ! operator represents the logical not operation.
Each compound operator combines two operators together. For example a compound operator might combines the adding operator and the assignment operator.
Sting concatenation operator (.)