Hello,
Thanks for your great advice,
and also the tutorial http://www.aditus.nu/jpgraph/jpg_phpoo.php helps so much.
I guess I was confusing a copy of object and a reference of object.
btw that's too confusing!
"Gyozo Papp" <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I've not tried your code yet, but after examining it a short while I think your
>problem is that PHP's copying behaviour. It means that assignments (including
>argument/parameter) *copy* values to the target variable no matter it is an object
>or a string or whatever.
> You should use references , perhaps it helps. The '&' is your very best friend!
> IMHO, current() and next() also returns just the copy of the array elements as well
>as "foreach" construct, beware of it.
>
> visit this one http://www.aditus.nu/jpgraph/jpg_phpoo.php
> there are some short examples of PHP's copying behaviour.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]