Possible Duplicate:
PHP syntax for dereferencing function result
function returnArray(){
$array = array(
0 => "kittens",
1 => "puppies"
);
return $array;
}
echo returnArray()[0];
How do i do that without assigning the whole array to a variable?