Re: How can an elephant count for nothing?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2009-02-12 at 13:12 +0200, Dotan Cohen wrote:
> Have you tried with a mouse?
> 
Non-strings equate to a boolean value of 1 when they are converted to a
boolean value automatically (in the case of comparison queries) when
they contain a value. Strings of 0 length are converted to a 0. In
useful terms, 1 is true and 0 is false in the PHP world. As PHP is a
loose-typed language you should really use the === operator if you need
to compare variable mathc and type match.


Ash
www.ashleysheridan.co.uk


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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux