Asked • 05/06/19

How do the PHP equality (== double equals) and identity (=== triple equals) comparison operators differ?

What is the difference between `==` and `===`? - How exactly does the loosely `==` comparison work? - How exactly does the strict `===` comparison work? What would be some useful examples?

1 Expert Answer


Kunal P. answered • 05/12/19

New to Wyzant

Experienced Web Developer teaching programming languages.

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.


Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.