title: Is it possible to dynamically add members to PHP objects?
body: <p>Is it possible to add to PHP objects on the fly? Say I have this code:</p>
  
  <pre><code>$foo = stdObject();
  $foo-&gt;bar = 1337;
  </code></pre>
  
  <p>Is this valid PHP?</p>