in php, i often need to map a variable using an array ... but i can not seem to be able to do this in a one liner. c.f. example:
// the following results in an error:
echo array('a','b','c')[$key];
// this works, using an unnecessary variable:
$variable = array('a','b','c');
echo $variable[$key];
this is a minor problem, but it keeps bugging every once in a while ... i don't like the fact, that i use a variable for nothing ;)