I\'m pretty sure the answer to this question is no, but in case there\'s some PHP guru
is it possible to write a function in a way where invalid arguments or non exi
@Brian: I use a trinary operation to do the check for me:
return $value ? $value : $default;
this returns either $value OR $default. Depending upon the value of $value. If it is 0, false, empty or anything similar the value in $default will be returned.
I'm more going for the challenge to emulate functions like empty() and isset()