Is there a function()[key] similar syntax for PHP?
<p>I always loved how i can quickly do with JavaScript:</p>

<pre><code>function hello(){
  return ['foo', 'bar'];
}

hello()[0]; // foo
</code></pre>

<p>Why can't we do such things with PHP or is there another short syntax for that?</p>
