On Fri, Aug 15, 2014 at 6:58 PM, Christoph Becker <cmbecke...@gmx.de> wrote: > Andrey Andreev: > >> I'd personally find it horrible if $foo[$i] = $bar[$i++]; is executed >> right-to-left, but given that your examples are a bit weird, I'm not sure >> if mine is affected. Is it? > > Isn't that evaluated from right to left already since PHP 5.1.0? See > <http://3v4l.org/Ivfdr#v510>. > > -- > Christoph M. Becker
Huh, I never suspected that. I've written a lot of code that relies on increments in one-liners, possibly not for assignment though. I better go and do some greps for this ... Cheers, Andrey. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php