As of PHP5.5 you can do:
$text = array(0 => 'Zero', 1 => 'One', 2 => 'Two')[2];
For versions lower than 5.5 you'll have to code a function like array_value()
on your own as there is no built in function for it. Like this:
function array_value($key, $array) {
if(!array_key_exists($key, $array)) {
throw new Exception('Array has no index ' . $key);
}
return $array[$key];
}