-2

So I just saw the examples of strpos...and wondered why they explicitely mentioned that they used three equal signs? I have always used two, but heared that three are better for numeric operations...i am confused.

So, what is the difference between === and == ?

Ingwie Phoenix
  • 2,703
  • 2
  • 24
  • 33

1 Answers1

0

"===" also checks to make sure the variables are of the same type.

http://php.net/manual/en/language.operators.comparison.php

JonnyS
  • 314
  • 1
  • 7