the difference, == test if the equation on the left and right are equal to one another even if they are of different types, whereas, === check if they are identical both value and type
@felgallMay 11.2005 — #They would both be true because they are all numbers and equal/identical values.
It gives different results when the two sides are different types eg numeric and boolean for example: if(12 == true) { //TRUE because only 0 evaluates as false } if(12 === true) { //FALSE because they are not the same type }
@ShrineDesignsMay 11.2005 — #more like[code=php]<?php if(1 == true) { echo '1 is equal to true<br>'; } if(1 === true) { echo '1 is identical to true<br>'; } if(1 != true) { echo '1 not is not equal to true<br>'; } if(1 !== true) { echo '1 is not identical to true<br>'; } ?>[/code]