note 87204 deleted from function.empty by danbrown
| From: | danbrown@php.net | Date: | Mon, 24 Nov 2008 16:23:46 +0000 |
| Subject: | note 87204 deleted from function.empty by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-146875@lists.php.net to get a copy of this message | ||
Note Submitter: vista_ at live dot se
Reason: useless
----
Sorry, it were wrong in my last post.
Right code is
<?php
if (!function_exists ('empty'))
{
function empty ($str)
{
if ($str == 0 || $str == '' || $str == '0' || is_null ($str) ||
!$str || (is_array($str) && count ($str) == 0))
{
return true;
}
return false;
}
}
?>