title: Define array index after function call
body: <p>In other languages such as C# and JavaScript, I am able to access the index of an array with a function call such as</p>
  
  <pre><code>getMyArray()[0] 
  </code></pre>
  
  <p>This would allow me to access the first index of the result instead of passing back the entire array and then setting the result.</p>
  
  <p>However this shortcut does not work with PHP. Is there a way to get this shortcut?</p>