It's quite logical...

<?php
$a
= 0;
$b = 'x';
var_dump(FALSE == $a);
var_dump($a == $b);
var_dump($b == TRUE);
?>

This results in
bool(true)
bool(true)
bool(true)

if you were to follow simple rules learned in elementary school (or just common sense) then seemingly FALSE == TRUE. Opsie.

»
Syndicate content