> I actually prefer the function version because it is clearer. Null is
> not a value; it is the absence of a value. Doing an equality
> comparison on something that doesn't exist doesn't make any sense.
Hello,
'$var === null' is more about testing the Type of $var, as opposed to testing
it's Value (which is absent, as you said). When two values being compared have
a Type of null, it can safely be assumed that neither of them have a Value.
SQL seems to treat NULL as 'Unknown', which is why SELECT Unknown = Unknown
results in 'Unknown'.
In PHP, null means 'nothing/emptiness/no data', so 'no data' === 'no data' is a
bit more valid.
regards,
Peter
____________________________________________________
Do you Yahoo!?
Cars: Buy and sell, news, reviews, videos and more
http://yahoo.drive.com.au/