Boolean == and === operators in PHP
There are two equality Boolean operators in PHP. There is == Boolean operator which is represented with two equal signs, and there is === Boolean operator that is represented with three equal signs. The difference between them that the first one will check only the value, and the second one will also check the type. For example in the first case integer value zero will be equal to floating number 0.0, but the result of second operation will be false. Even so the value is the same, but this value is represented by different data types.
Comments
Post a Comment