0 == null ?
| From: | Justin Palmer | Date: | Mon, 10 May 2004 19:17:02 +0000 |
| Subject: | 0 == null ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-185837@lists.php.net to get a copy of this message | ||
Hi,
Does 0(zero) really equate to null?
if( 0 == null )
{
echo 'true';
}
else echo 'false';
Result echo's: true
This can not be right, can it? I have never heard of such a thing. As
far as I recall from any language null is of no value equaling nothing?
So how can it equal 0?
Any help or explanation would be greatly appreciated.
Regards,
Justin Palmer