Ticker

6/recent/ticker-posts

PHP (Operators)

PHP OPERATORS

There are three types of PHP operators and these are described below. 

ARITHMETIC OPERATORS
Operator
Function
Example
+
Addition
C=A+B
-
Subtraction
C=A-B
*
Multiplication
C=A*B
/
Division
C=A/B

LOGICAL OPERATORS
Operator
Function
Example
&&
And
A > B && B > C
||
Or
A >33 B || A == 33
!
Not
A != 0


RELATIONAL OPERATORS
Operator
Function
Example
Less than
A < B
<=
Less than or Equal to
A <= B
Greater than
A > B
>=
Greater than or Equal to
A >= B
=
Assignment
A = B
==
Comparison
A == B









Post a Comment

0 Comments