In PHP5 to get a copy of, versus a reference to, an object the developer must call the __clone() method for the target object:
$obj = new Foo(); $copyNotReference = $obj->__clone();
The correct syntax for that is:
$obj = new Foo; $copyNotReference = clone $obj;
Cheers, Daniel
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php