title: Is it possible to delete an object's property in PHP?
body: <p>If I have an <code>stdObject</code> say, <code>$a</code>.</p>
  
  <p>Sure there's no problem to assign a new property, <code>$a</code>,</p>
  
  <pre><code>$a-&gt;new_property = $xyz;
  </code></pre>
  
  <p>But then I want to remove it, so <code>unset</code> is of no help here.</p>
  
  <p>So,</p>
  
  <pre><code>$a-&gt;new_property = null;
  </code></pre>
  
  <p>is kind of it. But is there a more 'elegant' way?</p>