Re: How can an elephant count for nothing?

From: Date: Thu, 12 Feb 2009 11:03:44 +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-288148@lists.php.net to get a copy of this message
> Can anyone explain clearly why comparing a string > with zero gives this apparently anomalous result? <?php $string = 'oleyphoont'; var_dump((int)$string, $string == 0, $string == 1); ?>

« previous php.general (#288148) next »