note 53737 added to function.isset
| From: | richardwilliamleeATgmail at osu1 dot php dot net | Date: | Sat, 11 Jun 2005 06:38:17 +0000 |
| Subject: | note 53737 added to function.isset | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-90250@lists.php.net to get a copy of this message | ||
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.
----
Manual Page -- http://www.php.net/manual/en/function.isset.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+53737
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53737&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53737&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53737&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53737&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53737&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+53737&report=yes
Search -- http://master.php.net/manage/user-notes.php