|
Posted by Vince Morgan on 04/10/07 22:09
"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!
Navigation:
[Reply to this message]
|