Re: Re: ramble was [PHP] Not sure of my error

From: Date: Sat, 18 Nov 2000 01:03:46 +0000
Subject: Re: Re: ramble was [PHP] Not sure of my error
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-25989@lists.php.net to get a copy of this message
On Sat, Nov 18, 2000 at 10:59:09AM +1000, Matt Stone wrote: > So you are saing that (emty($foo)) is better then $foo='' or !$foo? No - it's up to you. Don't use empty() for checking numbers because it will return true if set to 0 - that's my only advice. --Joe > > -----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 ================================================================================ = Joe Stump joestump98@yahoo.com http://www.miester.org = ================================================================================ "Real programmers don't comment their code. It was hard to write, it should be hard to understand."

« previous php.general (#25989) next »