== compares the values of variables for equality, type casting as necessary. === checks if the two variables are of the same type AND have the same value.
Examples:
1 === 1: true
1 == 1: true
1 === "1": false // 1 is an integer, "1" is a string
1 == "1": true // "1" gets casted to an integer, which is 1
"foo" === "foo": true // both operands are strings and have the same value
0 Comment(s)