Lecture 6 PHP Operators
Lecture 6 PHP Operators
COMP203TH
Lecture: 6
PHP Operators
(Note:-Check video lecture for examples)
Arithmetic Operators:
PHP supports all standard arithmetic operations:
Comparison Operators:
The assignment operators are used to assign value to different variables. The
basic assignment operator is “=”.
String Operators:
The string operators are used to perform the operation on strings. There are
two string operators in PHP:
The bitwise operators are used to perform bit-level operations on the operands.
The operands are first converted to bit-level and then calculation is performed
on the operands.