Possible Duplicate:
Access array element from function call in php
Sorry if this has been asked before, but due to the symbols I can't search Google or Stack Overflow for it. If it's been asked before, feel free to close it as a dupe.
In some languages, if a function returns an array, then as opposed to storing the array in a variable then retrieving a single element, like this:
var someValues = getSomeValues();
var firstElement = someValues[0];
You can use the array index notation directly on the function call to retrieve the element of the returned array instead, like this:
var firstElement = getSomeValues()[0];
What is this construct known as? Does it have a special name at all?