title: how to remove an object reference from a php array without destroying its object
body: <p>I need to remove an object from an array in php but I need the object reference to still exist, when I tried using <code>unset()</code> as described <a href="https://stackoverflow.com/questions/3573313/php-remove-object-from-array">here</a> it unset both the array element and the object itself, how can I remove the reference from the array without destroying the object?</p>
  
  <p>my code looks like the following:</p>
  
  <pre><code>$this-&gt;array[id] = myobject;
  unset($this-&gt;array[$id]);
  </code></pre>