= 0 and = "0"

From: Date: Thu, 25 Oct 2001 08:05:52 +0000
Subject: = 0 and = "0"
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-72207@lists.php.net to get a copy of this message
why does <? $qty = "0" ; if ($qty != "test") print "qty is not test"; ?> work properly but not the following <? $qty = 0 ; if ($qty != "test") print "qty is not test"; ?> Thanks, Robin

« previous php.general (#72207) next »