title: Javascript-like objects in PHP?
body: <p>It's pretty handy in JS to create objects like this:</p>
  
  <pre><code>test = { foo : { bar : "hello world" }, bar2 : "hello world 2" }
  </code></pre>
  
  <p>and then use them like: </p>
  
  <pre><code>test.foo.bar
  test.bar2
  </code></pre>
  
  <p>Is there anything like this in PHP without declaring classes?</p>