leatherback wrote:0 <> NULL
O = ZERO as in, 1-1
NULL is no value!
Leatherback is right - but php is sometimes a lazy sod, unless you tell it to be ultra specific with === and !==
Run this
echo NULL == 0 ? 'yes, NULL == 0' : 'No, NULL == 0 is not true';
echo '<br />';
echo NULL === 0 ? 'yes, NULL === 0' : 'No, NULL === 0 is not true';
And as far as == is concerned, false is NULL is 0. But use === and you'll get the distinction between them.