title: Getting element from PHP array returned by function
body: <p>I'm not sure if this is possible, but I can't figure out how to do it if it is...</p>
  
  <p>I want to get a specific element out of an array that is returned by a function, without first passing it into an array... like this...</p>
  
  <pre><code>$item = getSomeArray()[1];
  
  
  function getSomeArray(){
       $ret = Array();
       $ret[0] = 0;
       $ret[1] = 100;
       return $ret;
  }
  </code></pre>
  
  <p>What's the correct syntax for this?</p>