Re: copy() method on objects

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Paul M Foster wrote:
[snip]

There are cases where I strictly want a *copy* of $a stored in $b. In
cases like this, I supply $a's class with a copy() method, and call it
like this:

$b = $a->copy();

Is this reasonable, or do people have a better/more correct way to do
this?

Paul

http://fr.php.net/clone

hth
rich

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux