Home >Backend Development >PHP Tutorial >The difference between all equals === and equals == in php_PHP tutorial

The difference between all equals === and equals == in php_PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-12 09:05:261039browse

The difference between equal === and equal == in php

Examples are as follows:
$a=strpos("host","h");//If there is h, return the location of h. This example returns 0, if not, returns false
if($a===false){
echo "no h";
}else{
echo "有h";
}

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1069440.htmlTechArticleThe difference between all equals === and equals == in php is as follows: ?php $a=strpos(host ,h);//If there is h, return the position of h. In this example, return 0, if not, return 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