In documentation http://www.php.net/manual/en/language.operators.precedence.php it is said, that ++
and --
operators have very high precedence.
But as i know, ++$x
and $x++
is not the same. Moreover, $x++
should have minimal precedence, because it is calculated after everything is done:
$x = 1;
var_dump(1 and $x--); // and operator is one of last operators in the table, it will be executed before post decrement
So, post- increment/decrement operators should be in this table in the bottom?