What does “===” mean?

前端 未结 10 1450
一生所求
一生所求 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:52

    For PHP, there many different meanings a zero can take

    1. it can be a Boolean false
    2. it could be a null value
    3. It could really be a zero

    So === is added to ensure the type and the value are the same.

提交回复
热议问题