When comparing values in PHP for equality, we can use either the == operator or the === operator. What’s the difference between them? Well, it’s quite simple. The == operator just checks to see whether left and right values are equal or not. But, the === operator (note the extra “=”) actually checks to see whether left and right values are equal, and also checks to see whether they are of the same variable type (like whether they are both booleans, ints, etc.) or not.