Tip of the Week: ‘==’ vs ‘===’
So, if you are checking if a variable is set to true or false, i suggest doing it using ‘===’ instead of ‘==’ this is because in php the value of false is 0 and true is 1, when you use the === it checks the variable type as well, where as ‘==’ only checks if they are equal.