RE: [PHP] Re: ramble was [PHP] Not sure of my error
| From: | jeremy brand | Date: | Sat, 18 Nov 2000 01:07:53 +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-25994@lists.php.net to get a copy of this message | ||
Just to be clear, $foo == ''. We all have had different experiences
where one might be better than the other in certain circumstances. It
just comes with experience. So, I don't want to say that one is
better or not because it depends on the situation.
-jeremy brand
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: jeremy@nirvani.net
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html
for more
- - - - - - - - - - - - - - - - - - - - - - - - -
I am pleased to see that we have differences. May we together become
greater than the sum of both of us.
-- Surak of Vulcan, "The Savage Curtain", stardate 5906.4
> 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
>
>
>
> --
> 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
>
>