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,
As the others says, there is no direct way to do this, I usually just assign it to a variable like so:
$items = getSomeArray(); $item = $items[1]; function getSomeArray(){ $ret = Array(); $ret[0] = 0; $ret[1] = 100; return $ret; }