Hi,

> [FROM] Leon Atkinson
> <?
>     class a {}
>
>     function c($c)
>     {
>         $c->name = 'C';
>     }
>
>     $a = new a;
>     $b = $a;
>
>     $a->name = "A";
>     print($a->name);
>     $b->name = "B";
>     print($a->name);
>     c($a);
>     print($a->name);
> ?>
>
> In ZE1 you get "AAA". In ZE2 you get "ABC".
>

Just to prevent any misconception, the code executed through the ZE1 will
actually be "AAC" rather than "AAA". If you desired the latter result,
change "c($a);" to "c($b);".

</pickyCorrection>


-- 
Dan Hardiker [[EMAIL PROTECTED]]
ADAM Software & Systems Engineer
First Creative



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to