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
Why not just do:
function splode($string, $delimiter, $index){ $r = explode($delimiter, $string); return $r[$index]; }
I use like a hojillion little functions like this.