What is the difference between == and === in PHP?

The ``== `` operator casts between two different types if they are different. The `` === `` operator performs a typesafe comparison i.e. it will only return true if both operands have the same type and value.

22-August 9:27 PM 357 Views

 Prev question

Next question