isset($var) && !empty($var) same time!
| From: | lallous | Date: | Fri, 02 Aug 2002 14:48:17 +0000 |
| Subject: | isset($var) && !empty($var) same time! | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-110832@lists.php.net to get a copy of this message | ||
I have wrote this function:
function issne($var)
{
return isset($var) && !empty($var) ? true : false;
}
which can be called as: if (issne(&$mightbeundefinedvariable)) echo "using
this variable";
is there is any builtin function that does that? (one function call).
//Elias