Comparing values on PHP

Who knows the difference between == and === on PHP? Well, I already knew and still, fell on a trap that I done myself… I was working on a method that receives “on” and “off” and returns 1 and 0 or  “on” and “off”. When I needed to compare the return var with a value, I forgot the importance of the difference between the signs.

Continue reading “Comparing values on PHP”