is there a way to get the n-th element of a splitted string without using a variable?
My PHP code always looks like this:
$foo = explode(\" \", \"bla
Not as far as I know although you could define a function and use that.
function firstWord($string) { $foo = explode(" ", $string); return $string; }