note 21415 added to function.isset
| From: | cluebie@php.net | Date: | Sun, 12 May 2002 03:43:43 +0000 |
| Subject: | note 21415 added to function.isset | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-30498@lists.php.net to get a copy of this message | ||
Note that chris@owta.net's example is not entirely fullproof when using error_reporting( E_ALL
).
If $HTTP_POST_VARS['element'] is not set it will generate a warning. You must check every
referenced element in an array for existence.
eg.
if (!isset($HTTP_POST_VARS['element']))
{
# do stuff
}
--
http://www.php.net/manual/en/function.isset.php
http://master.php.net/manage/user-notes.php?action=edit+21415
http://master.php.net/manage/user-notes.php?action=delete+21415
http://master.php.net/manage/user-notes.php?action=reject+21415