title: Creating anonymous objects in php
body: <p>As we know, creating anonymous objects in JavaScript is easy, like the code below:</p>
  
  <pre><code>var object = { 
      p : "value", 
      p1 : [ "john", "johnny" ]
  };
  
  alert(object.p1[1]);
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>an alert is raised with value "johnny"
  </code></pre>
  
  <p>Can this same technique be applied in PHP? Can we create anonymous objects in PHP?</p>