Re: Whacky increment/assignment logic with $foo++ vs ++$foo
| From: | Ben Dunlap | Date: | Fri, 02 Oct 2009 22:01:40 +0000 |
| Subject: | Re: Whacky increment/assignment logic with $foo++ vs ++$foo | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-298498@lists.php.net to get a copy of this message | ||
>> Seems like any way you slice it the output should be 3. I guess what's
>
> ... and, in fact, that /is/ how C behaves. The following code:
Whereas Perl (v5.10.0) handles the construct the same way that PHP
does. Curiouser and curiouser.
Ben