weird comparsion

From: Date: Thu, 03 May 2007 11:08:12 +0000
Subject: weird comparsion
Groups: php.db 
Request: Send a blank email to php-db+get-43536@lists.php.net to get a copy of this message
Hello, Why does anything compared to 0 return true? I know it might seem to be a bit off-topic, but for me it is important for detecting if NULL value in table has been changed (for example NULL is changed to 0). if ("foo"==0) echo("foo equals to 0"); OKi98

« previous php.db (#43536) next »