note 71072 added to function.is-null

From: Date: Fri, 10 Nov 2006 18:25:45 +0000
Subject: note 71072 added to function.is-null
Groups: php.notes 
Request: Send a blank email to php-notes+get-119590@lists.php.net to get a copy of this message
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. ---- Server IP: 64.71.164.2 Probable Submitter: 68.51.69.172 ---- Manual Page -- http://www.php.net/manual/en/function.is-null.php Edit -- https://master.php.net/note/edit/71072 Del: integrated -- https://master.php.net/note/delete/71072/integrated Del: useless -- https://master.php.net/note/delete/71072/useless Del: bad code -- https://master.php.net/note/delete/71072/bad+code Del: spam -- https://master.php.net/note/delete/71072/spam Del: non-english -- https://master.php.net/note/delete/71072/non-english Del: in docs -- https://master.php.net/note/delete/71072/in+docs Del: other reasons-- https://master.php.net/note/delete/71072 Reject -- https://master.php.net/note/reject/71072 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#119590) next »