RE: [PHP] Re: ramble was [PHP] Not sure of my error
| From: | Matt Stone | Date: | Sat, 18 Nov 2000 00:59:09 +0000 |
| Subject: | RE: [PHP] Re: ramble was [PHP] Not sure of my error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-25988@lists.php.net to get a copy of this message | ||
So you are saing that (emty($foo)) is better then $foo='' or !$foo?
-----Original Message-----
From: Philip Olson [mailto:philip@theprojects.org]
Sent: Saturday, 18 November 2000 10:58 AM
To: Joe Stump
Cc: php-general@lists.php.net
Subject: [PHP] Re: ramble was [PHP] Not sure of my error
> > --
> > be outside the box.
>
> I just like to follow your motto - so I usually use strlen() :O)
Ha! I can accept this. <G>. It's funny, I used to always use:
$foo == '' vs. a function check such as (empty($foo))
and it's amazing how many do this, it is a fairly common act. Remember
reading not long ago that iirc, Rasmus mentioned that if errors are set
high enough it'll ('') spit out an error and since then i think about this
often.
Paranoid,
Philip
--
be outside the box.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net