Re: use of @ operator to suppress errors

From: Date: Mon, 15 Mar 2004 11:56:58 +0000
Subject: Re: use of @ operator to suppress errors
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-180426@lists.php.net to get a copy of this message
Hello Ben, Monday, March 15, 2004, 11:43:24 AM, you wrote: BJ> For example if I refer to $_GET['this'] when there is no 'this' BJ> querystring BJ> key then i get the error. BJ> I've tried using @$_GET['this'] but it makes no difference. BJ> Is this normal? Yes because @ suppresses the errors on function calls, not variables (which is all $_GET['this'] is). It's like saying @$this - i.e. as you can see, it doesn't make sense. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html

« previous php.general (#180426) next »