什么是"==="?意思是? [英] What does "===" mean?

查看:105
本文介绍了什么是"==="?意思是?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到有人在使用PHP运算符===,但我没有道理.我已经尝试过使用一个函数,并且它以疯狂的方式对应.

I've noticed someone using the PHP operator === which I can't make sense out of. I've tried it with a function, and it corresponds in crazy ways.

此运算符的定义是什么?我什至在PHP运算符的声明中找不到它.

What is the definition of this operator? I can't even find it in the declaration of PHP operators.

推荐答案

$a === $b     (Identical)      

TRUE ,如果$a等于$b,并且它们是同一类型. (在PHP 4中引入)

TRUE if $a is equal to $b, and they are of the same type. (introduced in PHP 4)

PHP文档

这篇关于什么是"==="?意思是?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆