I\'m not sure if this is possible, but I can\'t figure out how to do it if it is...
I want to get a specific element out of an array that is returned by a function,
PHP 5.4 has added Array Dereferencing, here's the example from PHP's Array documentation:
Example #7 Array dereferencing
function getArray() { return ['a', 'b', 'c']; } // PHP 5.4 $secondElement = getArray()[0]; // output = a // Previously $tmp = getArray(); $secondElement = $tmp[0]; // output = a