Re: turn off a warning with $GET_['var'];
| From: | Erwin | Date: | Mon, 02 Sep 2002 09:54:40 +0000 |
| Subject: | Re: turn off a warning with $GET_['var']; | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-114890@lists.php.net to get a copy of this message | ||
Peter Mr. Eps Thoenen wrote:
> Hello,
>
> trying to figure a way to turn off the following warning. .... @
> doesn't seem to work neither does switch (isset($_GET['status'])){
>
> Notice: Undefined index: status in E:\php\tt\index.php on line 6
>
> switch ($_GET['status']){
try array_key_exists instead of isset.
Neither isset nor array_key_exists should give warning messages. Maybe you
have a very high errorlevel? Isset doens't give warnings if E_NOTICE is set
as errorlevel.
Grtz Erwin