Home  >  Article  >  Backend Development  >  php中全等于===和等于==的区别_PHP教程

php中全等于===和等于==的区别_PHP教程

WBOY
WBOYOriginal
2016-07-12 09:05:26968browse

php中全等于===和等于==的区别

例子如下:
$a=strpos("host","h");//如果有h,返回h所在的位置,本例返回0,如果没有则返回false
if($a===false){
    echo "没有h";
}else{
    echo "有h";
}

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/1069440.htmlTechArticlephp中全等于===和等于==的区别 例子如下: ?php $a=strpos(host,h);//如果有h,返回h所在的位置,本例返回0,如果没有则返回false if($a===false){ ech...
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