Home >Backend Development >PHP Tutorial > 非空str==零的结果为true

非空str==零的结果为true

WBOY
WBOYOriginal
2016-06-13 12:40:46840browse

非空str==0的结果为true

<br />
<?php <br />
     $str='asdfasdfa';<br />
     $bool = ($str==0);<br />
     echo $bool;<br />
?><br />

这里bool居然为true.....
这是为什么

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn