Olivier Hill wrote:

Marc Richards wrote:


That is true for other things as well:

$a = $b += $c += $d;

$a = $b + $c = $d;


Well.. yes and no...

If you are afraid of making mistake, you can force yourself to never use += -= *= operators, because you can simply write $a = $a + $b

But if PHP introduces the ?: operator, you have to use it and there is no other way around.

What? Why? There is obviously a way around it, because that is what people are using now.


$a = $b ? $b : $c;


Marc

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to