Yes, if you were comparing to a boolean, but in this case you are comparing
to an integer.

-----Original Message-----
From: Alexander Skwar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 12:51 PM
To: Rudolf Visagie
Cc: Jan Rademaker; [EMAIL PROTECTED]
Subject: Re: [PHP] Please explain...


ğRudolf VisagieĞ sagte am 2002-03-19 um 12:19:04 +0200 :
> I would guess that the string "foo" evaluates to integer 0 in the
comparison

Hmm, shouldn't a filled string ("foo") evaluate to TRUE, ie. to 1?

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:       http://www.iso-top.de      |     Jabber: [EMAIL PROTECTED]
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
                       Uptime: 1 day 23 hours 44 minutes

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

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

Reply via email to