It's just an another incarnation of a classy

return $foo == $bar ? true : false;


On Wednesday, May 8, 2013 9:53:05 PM UTC+12, Bruce Clement wrote:
>
>
> Also it's heartwarming to see how some thought has gone into return values 
>
>
>             if ($content === false) {
>                 return false;
>             }
>
>             return $content;
>
>
> This way if $content is false, false will be returned instead of the value 
> of $content.
>
> -- 
> Bruce Clement
>
> Home:    http://www.clement.co.nz/
> Twitter:    http://twitter.com/Bruce_Clement
>
> "Before attempting to create something new, it is vital to have a good 
> appreciation of everything that already exists in this field." Mikhail 
> Kalashnikov
>  

-- 
-- 
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
--- 
You received this message because you are subscribed to the Google Groups "NZ 
PHP Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to