[nycphp-talk] newbie confusion
Christopher Hendry
chendry at gmail.com
Thu Nov 11 23:13:29 EST 2004
> To make a by-value copy of an object, use the clone operator:
>
> $copy = clone $original;
>
> To control the cloning behavior of a class, define a __clone() method.
>
> More details available in "Upgrading to PHP 5." :)
>
Good stuff Adam - didn't know about clone. Guess it's time to buy the book. ;)
C
--
"When you do things right, people won't be sure you've done anything at all."
More information about the talk
mailing list