Reputation: 941
I am trying to reference something inside an array i get from a function.
Lets say I have a collection named $myArrays
and when i call $myArrays->first();
I will get an array.
Now when I try to get the first element in my array with $myArrays->first()[0]
this doesn't work. Why is that so and is there a way to use it in a similar way?
Regards, Senad
Upvotes: 1
Views: 68