note 98522 deleted from function.empty by danbrown
| From: | danbrown@php.net | Date: | Fri, 25 Jun 2010 15:22:16 +0000 |
| Subject: | note 98522 deleted from function.empty by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-170456@lists.php.net to get a copy of this message | ||
Note Submitter: Rob
----
For everyone who is offering functions to replace empty() please remember that php will report an
"Undefined variable" warning when you try to call a function with an unset variable.
The only safe way to do it is to use
<?php
if(isset($var)){call_function_to_replace_empty($var);}
?>