any idea how if the following is possible in PHP as a single line ?:
... It doesn
You can do this in one line! Use array_shift().
When this is executed, it will echo "foo".
foo