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

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

WBOY
WBOYOriginal
2016-06-13 08:51:181123browse

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

例子如下:

$a=strpos("host","h");//如果有h,返回h所在的位置,本例返回0,如果没有则返回false

if($a===false){

    echo "没有h";

}else{

    echo "有h";

}

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