usando === confronti non solo valore ma anche il tipo:
1 == '1' da come risultato TRUE ('1' è convertito in intero)
1 === '1' da invece FALSE perchè 1 è un intero e '1' è un char
Stesso discorso per i !==
1 != '1' -> FALSE
1 !== '1' -> TRUE: i tipi sono diversi
http://php.net/manual/en/language.op...comparison.php