Re: hello world == 0 ?

From: Date: Tue, 09 Mar 2004 14:27:16 +0000
Subject: Re: hello world == 0 ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-179891@lists.php.net to get a copy of this message
Hi, Wednesday, March 10, 2004, 12:22:08 AM, you wrote: t> why is var_dump( 0 == 'hello world') TRUE and not FALSE? because 0 is integer and the integer value of 'hello world' is 0 so they are equal. -- regards, Tom

« previous php.general (#179891) next »