Re: RES: [PHP] inexplicable behaviour SOLVED
| From: | 9el | Date: | Mon, 27 Apr 2009 15:03:33 +0000 |
| Subject: | Re: RES: [PHP] inexplicable behaviour SOLVED | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-292027@lists.php.net to get a copy of this message | ||
>
> Thanks for the clarification, Mike. In my ignorance, I was under the
> impression that the right side of the equation was only for the use of
> the left part. How stupid of me. So what I should have been doing was
> $Count1 = $Count + 1; right?
>
$Count = $Count + 1; is exactly(?) same as $Count++; or ++$Count
But not exactly same. PostFix notation adds the value after assigning.
PreFix notation adds the value right away.
But optimized programming argues about how machine is coded nowadays.
> Anyway, I don't need that statement anymore as I found the error of my
> ways and have corrected it. And behold, the light came forth and it
> worked. :-)
>
Regards
Lenin
www.twitter.com/nine_L
www.lenin9l.wordpress.com