| Posted by jerrygarciuh on 01/18/08 18:45 
On Jan 18, 12:14 pm, Michael Fesser <neti...@gmx.de> wrote:> .oO(jerrygarciuh)
 >
 > >I discovered this by accident today.  How should I get an object's
 > >data into another variable and make modifications without affecting
 > >the original object?
 >
 > Clone it:
 >
 > $foo = new Object();
 > $bar = clone $foo;
 >
 > http://www.php.net/manual/en/language.oop5.cloning.php
 >
 > Micha
 
 Thanks Micha!
 
 JG
 [Back to original message] |