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

WBOY
Release: 2016-07-12 09:05:26
Original
1001 people have browsed it

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...
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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template