note 53737 deleted from function.isset by cmb
| From: | cmb@php.net | Date: | Sun, 10 Feb 2019 11:22:56 +0000 |
| Subject: | note 53737 deleted from function.isset by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-210212@lists.php.net to get a copy of this message | ||
Note Submitter: richard william lee AT gmail
----
Just a note on the previous users comments. isset() should only be used for testing if the variable
exists and not if the variable containes an empty "" string. empty() is designed for that.
Also, as noted previosuly !empty() is the best method for testing for set non-empty variables.