note 89836 deleted from function.empty by danbrown
| From: | danbrown@php.net | Date: | Wed, 25 Mar 2009 15:26:44 +0000 |
| Subject: | note 89836 deleted from function.empty by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-152427@lists.php.net to get a copy of this message | ||
Note Submitter: dead dot screamer at seznam dot cz
----
There are many ways, how create usefull emty function.
I use operators
@ and !.
It's comfortable for me.
example:
<?
// if $var isn't set equivalents:
if(empty($var));
if(!@$var);
// if $var is set equivalents:
if(isSet($var) && $var);
if(!empty($var));
if(@$var);
?>