php3-list | 2000051
Date: 05/15/00
- Next message: Richard Lynch: "Re: [PHP3] what's wrong with my class"
- Previous message: Richard Lynch: "Re: [PHP3] MySQL not compiled into the binary"
- In reply to: steve1800 <email protected>: "[PHP3] Ye Ol' Undefined variable"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
In article <000515033329D6.07382 <email protected>>, steve1800 <email protected> wrote:
> if (!empty($var)){...
>
> What do you guys think? I'm going the lower the error
> reporting back down before the scripts go into
Since empty() changes between PHP3 and PHP4 for "0", I'd go with:
if (isset($var) && $var)
This is what I use all the time, and I always code with error_reporting at 15.
-- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Richard Lynch: "Re: [PHP3] what's wrong with my class"
- Previous message: Richard Lynch: "Re: [PHP3] MySQL not compiled into the binary"
- In reply to: steve1800 <email protected>: "[PHP3] Ye Ol' Undefined variable"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

