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

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

WBOY
Release: 2016-06-13 08:51:18
Original
1154 people have browsed it

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

例子如下:

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

if($a===false){

    echo "没有h";

}else{

    echo "有h";

}

source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template