Skip to content

Glossary: PHP Basics

=== (strict comparison)

Also written: ===, !==, ==, strict comparison

`===` means equal and the same type, and `!==` means not equal or a different type. `==` converts types first, so `"5" == 5` is true but `"5" === 5` is false; prefer `===`.

Where the book teaches it

Related terms

type jugglingmatch