myFunc("birds") //gets element zero returned from "myFunc()"
This is much easier and faster than doing this:
$myArray = myFunc("birds"); echo $myArray;
No, unfortunately in PHP you can only subscript an array variable, no other kind of array returning expression.
The content is written by members of the stackoverflow.com community.
It is licensed under cc-wiki