Truthfulness and identical operator in PHP
First I need to define what these terms are. Truthfulness is checking values of variables, if values are equal to each other then returning value is True, otherwise it is False.
Identical is checking not only values, but also data types.
In PHP truthfulness is represented with two equal signs, and identical is represented with three equal signs.
Example of equality. Integer value of 5 will be equal to a floating number 5.0, however these are different data types and therefore identical operation will return false.
Comments
Post a Comment