Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以我刚刚看到strpos......的例子,想知道为什么他们明确提到他们使用了三个等号?我一直使用两个,但听说三个更适合数字运算……我很困惑。
strpos
那么, ===和==之间有什么区别?
"===" 还会检查以确保变量的类型相同。
http://php.net/manual/en/language.operators.comparison.php