Re: Comparison: ('*' == 0) ... True or false
| From: | Antony Dovgal | Date: | Tue, 11 Mar 2008 11:27:30 +0000 |
| Subject: | Re: Comparison: ('*' == 0) ... True or false | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-36097@lists.php.net to get a copy of this message | ||
On 11.03.2008 13:17, Scott McNaught [Synergy 8] wrote:
> Hey guys,
>
> I don’t know whether to post this as a bug or not. But I was tricked when programming today.
>
> It seems that the character "*" is non-strictly equivalent to 0.
> Is this the correct behavior or am I missing something?
http://www.php.net/manual/en/language.operators.comparison.php
Ask such questions in php-general@, please. Thank you.
--
Wbr,
Antony Dovgal