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
Release: 2016-07-12 09:05:26
Original
1038 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...
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template