Why is === faster than == in PHP?

前端 未结 12 944
有刺的猬
有刺的猬 2020-12-12 10:39

Why is === faster than == in PHP?

12条回答
  •  渐次进展
    2020-12-12 11:10

    In conclusion === is faster because don't converts the data type to see if two variables have same value, but when you need to see if two variables have same value you will use == if doesen't mather what type are variables, or === if is important also the type of variables.

提交回复
热议问题