Re: Undefined indicies
| From: | Zareef Ahmed | Date: | Mon, 27 Dec 2004 03:24:23 +0000 |
| Subject: | Re: Undefined indicies | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-37864@lists.php.net to get a copy of this message | ||
On Sun, 26 Dec 2004 15:47:54 -0500, John Holmes
<holmes072000@charter.net> wrote:
> Peter Jay Salzman wrote:
> > Slightly off topic, I apologise.
>
> >
> > if ( isset($_REQUEST['action']) && $_REQUEST['action'] ==
> > 'foo' )
> > do_something;
>
Personally I prefer the use of isset(), as it make sure that value is
set before doing any type of operation on it. using @ is a dangerous
practice as it just hide the errors.
And yes error reporting ought to be E_ALL in development environment.
zareef ahmed
--
Zareef Ahmed :: A PHP Developer in India ( Delhi )
Homepage :: http://www.zareef.net