title: 5.4 dereferencing to valid 5.3 array call
body: <p>I got an error on this line of code which uses dereferencing: </p>
  
  <pre><code>   $data['data'] = $results-&gt;result()[0];
  </code></pre>
  
  <p>(I started learning PHP with PHP 5.4.) How can I dereference in a 5.3 manner?</p>
  
  <p>I have checked the docs:</p>
  
  <pre><code>function getArray() {
      return array(1, 2, 3);
  }
  
  // on PHP 5.4
  $secondElement = getArray()[1];
  
  // before PHP 5.4
  $tmp = getArray();
  $secondElement = $tmp[1];
  
  // or
  list(, $secondElement) = getArray();
  </code></pre>
  
  <p>but creating a method call seems cumbersome</p>