title: PHP object like array
body: <p>I need to be able to set my object like this:</p>
  <pre><code>$obj-&gt;foo = 'bar';
  </code></pre>
  <p>then I need to use it as an array like that:</p>
  <pre><code>if($obj['foo'] == 'bar'){
    //more code here
  }
  </code></pre>