Re: 0 vs false
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: 0 vs false

From: Geoff Berrow <blthecat@ckdog.co.uk>
Date: Mon Apr 24 2006 - 08:16:08 CEST

Message-ID: <1145846522.785908.162290@u72g2000cwu.googlegroups.com> from
esingley@gmail.com contained the following:

>
>Say I have an expression where 0 is acceptable as a TRUE response. But
>how, in PHP, do I say that 0 = true since it treats 0 = FALSE = "".

You'll be embarrassed to learn that there is a section on is in the
manual. ;-)

http://uk.php.net/strpos

-- 
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Received on Mon May 1 03:02:44 2006