in reply to Re: Defensive Programming
in thread Defensive Programming

If that was really the whole construct (i.e. you've already generated $this and $that elsewhere) why not use:
return $somevar == $somevalue ? $this : $that;
Which is a lot easier for me to read w/o all that syntatic clutter around....

-Blake