Re: Re: ++ BUG?? (fwd)
| From: | Stanislav Malyshev | Date: | Sun, 26 Nov 2000 10:31:35 +0000 |
| Subject: | Re: Re: ++ BUG?? (fwd) | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-39138@lists.php.net to get a copy of this message | ||
IV>> are happening at the wrong time. They seem to be happening before the
IV>> assignment instead of after the whole statement. Pre operations work as
I do not get this. Why should ++ operator happen _after_ the
assignment? Expression is evaluated as expression, and it does not know
anything on the following assignment. $idx = ($idx++)%2 should leave $idx
as 0.
--
Stanislav Malyshev, Zend Products Engineer
stas@zend.com http://www.zend.com/ +972-3-6139665 ext.106