Just wondering why this syntax is not working in PHP? What workaround do most people use - if you want to write concise one-liner code?
$str = explode(" ", "foo bar")[0];
// thought $str would be $foo. instead I get error.
// guess I hadn't noticed this issue before.