title: Get instance of an object
body: <p>I have an object which has multiple instances;</p>
  
  <pre><code>object(stdClass)#613 (5) {
    [0]=&gt;
    object(stdClass)#426 (24) {
      ["created_at"]=&gt;
      string(30) "Thu Jun 04 14:07:47 +0000 2015"
      ["id"]=&gt;
       ...
  </code></pre>
  
  <p>I want to access a certain instance. I understand I can use a <code>foreach</code> or I can cast the object to an array and access the instance I want that way.</p>
  
  <p><a href="https://stackoverflow.com/a/19921022/817379">I also realise</a> I should be able to access an instance using curly brace notation ( Server is running an old version of PHP - out of my control )</p>
  
  <pre><code>$tweets = retrieve_tweets();
  if ( isset( $tweets{0}-&gt;created_at ) ) {
      ...
  </code></pre>
  
  <p>However I get the error;</p>
  
  <blockquote>
    <p>Cannot use object of type stdClass as array</p>
  </blockquote>
  
  <p>What am I doing wrong with this notation?</p>