I need to remove an object from an array in php but I need the object reference to still exist, when I tried using unset()
as described here it unset both the array element and the object itself, how can I remove the reference from the array without destroying the object?
my code looks like the following:
$this->array[id] = myobject;
unset($this->array[$id]);