Why do I have to load a PHP array into a variable before I access its elements?
Why can't I access the elements directly from the result of a function call?
e.g. This works:
$foo = "This is a variable I'm going to split/explode";
$bar = explode(' ', $foo);
echo $bar[1];
But this doesn't:
$foo = "This is a variable I'm going to split/explode";
echo explode(' ', $foo)[1];