It gets more complicated (www.php.net).
Operator Precedence
Associativity | Operators |
---|---|
non-associative | clone new |
left | [ |
non-associative | ++ -- |
right | ~ - (int) (float) (string) (array) (object) (bool) @ |
non-associative | instanceof |
right | ! |
left | * / % |
left | + - . |
left | << >> |
non-associative | < <= > >= <> |
non-associative | == != === !== |
left | & |
left | ^ |
left | | |
left | && |
left | || |
left | ? : |
right | = += -= *= /= .= %= &= |= ^= <<= >>= => |
left | and |
left | xor |
left | or |
left | , |