[PHP] bug or feature?

2001-03-14 Thread indrek siitan
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 --== [EMAIL PROTECTED] ==

Re: [PHP] bug or feature?

2001-03-14 Thread Pavel Jartsev
indrek siitan wrote: 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. :) It's