Daniel Schierbeck wrote:
return ($var > $min && $var < $max) ? TRUE : FALSE;
> (...)
>     return in_array($needle, $haystack) ? TRUE : FALSE;

You can return booleans without comparing them to true/false:

        return $var > $min && $var < $max;

        return in_array($needle, $haystack);

Christophe

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to