note 19355 added to function.isset
| From: | dave at matfyz dot cz | Date: | Mon, 25 Feb 2002 10:33:52 +0000 |
| Subject: | note 19355 added to function.isset | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-27004@lists.php.net to get a copy of this message | ||
What about the case that you want to get http vars directly from arrays HTTP_GET_VARS and
HTTP_POST_VARS etc. and you want to test if some variable is defined and that var really is defined
but its value is 0? Then all functions like isset and empty fail and you have to use foreach or
something similar and test if there occurs the name of your variable within the indexes of the
array. Or has someone better solution?
--
http://www.php.net/manual/en/function.isset.php
http://master.php.net/manage/user-notes.php?action=edit+19355
http://master.php.net/manage/user-notes.php?action=delete+19355
http://master.php.net/manage/user-notes.php?action=reject+19355