Difference between == and === operator in php. ?
By in on Mar 18 2015
• Feb, 2018 25
• Feb, 2018 25

In PHP == is equal operator and returns TRUE if $a is equal to$b after type juggling and === is Identical operator and return TRUE if $a is equal to$b, and they are of the same data type.Example Usages: source : https://www.onlineinterviewquestions.com/core-php-interview-questions/

• 0
• Mar, 2015 18

The == operator just checks to see if the left and right values are equal. But, the === operator (note the extra “=”) actually checks to see if the left and right values are equal, and also checks to see if they are of the same variable type (like whether they are both booleans, ints, etc.).

• 0