See: http://php.net/manual/en/language.oop5.cloning.php
Le 16/07/2010 16:46, Mark Hage a écrit :
Hi, How can I copy an object from a Zend_Session_Namespace? My code now: $session = new Zend_Session_Namespace('customer'); $oldCustomer = $session->customer;But when I assign a new value to eg. $session->customer->lastname = "NewName"; The value of $oldCustomer->lastname also changes to "NewName", but I want $oldCustomer to still have the old values in it.Thanx. Mark
