You are here: Re: 0 vs false « PHP Programming Language « IT news, forums, messages
Re: 0 vs false

Posted by Geoff Berrow on 04/24/06 09:16

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/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация