Re: Undefined indicies

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 26 Dec 2004 15:47:54 -0500, John Holmes
<holmes072000@xxxxxxxxxxx> 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

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux