What\'s a nicer way to do the following, that doesn\'t call f() twice?
$x = f() ? f() : \'default\';
In PHP 5.3, you can also do:
$a = f() ?: 'default';
See the manual on ?: operator.