Re: [PHP4BETA] compare error

From: Date: Wed, 09 Feb 2000 19:59:35 +0000
Subject: Re: [PHP4BETA] compare error
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-9993@lists.php.net to get a copy of this message
VT>> <? VT>> VT>> if (0!="record") VT>> {echo "0!='record'";} VT>> else VT>> {echo "0=='record'";} Shouldn't it be so? You are comparing numeric to something, so something is forced to be numeric. And numeric for "record" is 0. -- Stanislav Malyshev stas@zend.com +972-3-6139665

« previous php.version4 (#9993) next »