Re: How can an elephant count for nothing?

From: Date: Thu, 12 Feb 2009 21:16:40 +0000
Subject: Re: How can an elephant count for nothing?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-288185@lists.php.net to get a copy of this message
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

« previous php.general (#288185) next »