title: How to instantiate stdClass in place
body: <p>Is it it possible to do this in php?</p>
  
  <p>Javascript code:</p>
  
  <pre><code>var a = {name: "john", age: 13}; //a.name = "john"; a.age = 13
  </code></pre>
  
  <p>Instantiate the stdClass variable on the fly ?</p>