How is the beautiful way to reference something in an array returned by a function?
<p>I am trying to reference something inside an array i get from a function.</p>

<p>Lets say I have a collection named <code>$myArrays</code> and when i call <code>$myArrays-&gt;first();</code> I will get an array.</p>

<p>Now when I try to get the first element in my array with <code>$myArrays-&gt;first()[0]</code> this doesn't work. Why is that so and is there a way to use it in a similar way?</p>

<p>Regards, Senad</p>
