What does “===” mean?

前端 未结 10 1519
一生所求
一生所求 2020-11-27 06:01

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.

Wha

10条回答
  •  孤街浪徒
    2020-11-27 06:29

    $a === $b     (Identical)      
    

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

    PHP Docs

提交回复
热议问题