In Javascript, after the function is executed, I can immediately get the array element returned by the function, for example:
myFunc("birds")[0] //gets element zero returned from "myFunc()"
This is much simpler and faster than doing this:
$myArray = myFunc("birds");
echo $myArray[0];
Does PHP have a similar transcript for javascript? I'm just curious. Thanks in advance!
source
share