What\'s a nicer way to do the following, that doesn\'t call f() twice?
$x = f() ? f() : \'default\';
function f() { // conditions return $if_something ? $if_something : 'default'; } $x = f();