On Tue, Mar 11, 2008 at 11:17 AM, Scott McNaught [Synergy 8]
<[EMAIL PROTECTED]> 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?
>
>  Test case:
>
>  <?php
>
>  var_dump('*' == 0);
>
>  ?>
>
>  Shows boolean(true).
>
>  I was unable to find any documentation as to why this would be the case.

http://www.php.net/manual/en/language.operators.comparison.php

--
Pierre
http://blog.thepimp.net | http://www.libgd.org

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to