What does === do in PHP

后端 未结 8 1609
天涯浪人
天涯浪人 2021-01-05 23:25

I have been programming in PHP for a while but I still dont understand the difference between == and ===. I know that = is assignment. And == is equals to. So what is the pu

8条回答
  •  星月不相逢
    2021-01-05 23:59

    The PHP manual has a couple of very nice tables ("Loose comparisons with ==" and "Strict comparisons with ===") that show what result == and === will give when comparing various variable types.

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题