Operator Precedence in PHP

The table below defines operator precedence (and associativity) in PHP. Hover on any of the operators in the precedence table for further information.

P.
Arithmetic
,
Bitwise
,
Logical
,
Comparison
,
Other
and
Type-Related

Operators
As.
1
clone
new
 
2
[
LTR
3
++
--
~
(int)
(float)
(string)
(array)
(object)
(bool)
@
RTL
4
instanceof
 
5
!
RTL
6
*
/
%
LTR
7
+
-
.
8
<<
>>
9
<
<=
>
>=
 
10
==
!=
<>
===
!==
11
&
&
LTR
11
^
12
|
13
&&
14
||
15
? :
16
=
*=
/=
%=
+=
-=
.=
<<=
>>=
&=
^=
|=
=>
RTL
17
and
LTR
18
xor
19
or
20
,

PHP not your language? Select a different programming language.

Questions, comments ==> info (at) (this domain)

Other quick-reference sites:   db9-pinout.com | resistor-color-codes.com | hex-codes.com

Cheap NFL Jerseys Cheap NFL Jerseys goedkope air max online Basket Air Jordan 11 Christian Louboutin Outlet Cheap Jerseys Wholesale Jerseys Michael Kors Outlet Online Ray Ban Sunglasses Jerseys Wholesale Coach Outlet Store michael jordan air jordan 11 Coach Outlet Cheap NFL Jerseys Kate Spade Outlet Sale air max 90 pas cher junior Wholesale Jerseys Jerseys Cheap nba jerseys vegas Jerseys Wholesale China