bug or feature?
| From: | indrek siitan | Date: | Wed, 14 Mar 2001 15:36:22 +0000 |
| Subject: | bug or feature? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-43855@lists.php.net to get a copy of this message | ||
Hi,
<?
$value=0;
if ($value=="NULL")
echo "Value is NULL!";
else
echo "Value is not null.";
?>
output: Value is NULL!
is it a bug or expected behaviour? tested it on 4.0.4pl1.
i got around it by using strcasecmp(), but just wondering. :)
Rgds,
Tfr
--==< tfr@cafe.ee >==< http://tfr.cafe.ee/ >==<
+372-50-17621 >==--