Posted by Steve on 04/11/07 03:00
"Vince Morgan" <vinhar@REMOVEoptusnet.com.au> wrote in message
news:461c0ab1$0$23675$afc38c87@news.optusnet.com.au...
| "Steve" <no.one@example.com> wrote in message
| news:xQNSh.14$yM5.9@newsfe02.lga...
|
| > clear as mud? why then does the pre-incrementor work? because ++$m
| considers
| > $m BEFORE the rhs operation sets the lhs variable. so, all is known...at
| all
| > times. however in $m = $m++, the lhs $m is pending a value assignment
and
| > $m++ only increments after the line $m = $m++ is executed...it's a catch
| 22.
| >
| > are you thinking, 'BAD PHP! BAD! BAD!'? well...try this:
|
| Nah, it's the OP that I was thinking that of actualy ;)
| Thank you, very much appreciated!
no problem. (i hope my guess is right though.)
:)
[Back to original message]
|