note 88848 added to function.empty
| From: | contato at andersonfraga dot net | Date: | Tue, 10 Feb 2009 19:24:34 +0000 |
| Subject: | note 88848 added to function.empty | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-150461@lists.php.net to get a copy of this message | ||
<?php
function _empty() {
foreach(func_get_args() as $args) {
if( !is_numeric($args) ) {
if( is_array($args) ) { // Is array?
if( count($args, 1) < 1 ) return true;
}
elseif( !isset($args[1]) || strlen(trim($args)) == 0 ) {
return true;
}
}
}
return false;
}
?>
----
Server IP: 200.185.126.110
Probable Submitter: 189.7.132.32
----
Manual Page -- http://www.php.net/manual/en/function.empty.php
Edit -- https://master.php.net/note/edit/88848
Del: integrated -- https://master.php.net/note/delete/88848/integrated
Del: useless -- https://master.php.net/note/delete/88848/useless
Del: bad code -- https://master.php.net/note/delete/88848/bad+code
Del: spam -- https://master.php.net/note/delete/88848/spam
Del: non-english -- https://master.php.net/note/delete/88848/non-english
Del: in docs -- https://master.php.net/note/delete/88848/in+docs
Del: other reasons-- https://master.php.net/note/delete/88848
Reject -- https://master.php.net/note/reject/88848
Search -- https://master.php.net/manage/user-notes.php