Don't try to test
if ($intSomething==NULL) {
...
}
use
is_null() instead.
The first statement misses 0
values.
Regards,
Calin
[Ed. note: this is because ==
tests for equivalence of value, but not type. NULL evaluates to
false,
as does 0, so NULL == 0 is true--even though 0 is type int and NULL is type
null.
You should use either is_null() as noted or ===, which returns
true only if its operands are
equal and of the same type.]