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();
$_REQUEST['foo'] so it wasn't an efficiency issue so much as a typing issue.