note 71072 deleted from function.is-null by danbrown
| From: | danbrown@php.net | Date: | Mon, 15 Jun 2009 12:20:27 +0000 |
| Subject: | note 71072 deleted from function.is-null by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-156876@lists.php.net to get a copy of this message | ||
Note Submitter: passion4code at gmail dot com
----
function value_is_null($t){
if (is_array($t)) {
return (size_of($t) > 0)
} else {
return (($t != '') && (strtolower($t) != 'null') &&
(strlen(trim($t)) > 0))
}
}
This is fairly generic and will account for a variety of parameters. If you really want to be sure,
add a && !is_null($t) inside the last return statement.