See the following example:
<?PHP $oObjectA = array(); $oObjectB = array(); for(i=0;i<10;i++) { $oObjectA[$i] = new foo(); $oObjectB[$i] = $oObjectA[$i]; } ?>
How do I remove an element in the oObjectA array without destroying the object? I do not want to clone any object.
If I call unset($oObjectA[3]), the object will also be destroyed. apparently $oObjectB[3] is also destroyed?
/Erik
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php