Differences between the Equality
operator (==) and the Assignment
operator (=) ... The equality
operator (==) is used to compare two values or expressions. It is used to compare numbers, strings, Boolean values, variables, objects, arrays, or functions. The result is TRUE if the expressions are equal and FALSE otherwise.
read more >>