From Twisted quotefile: $ php sucks.php PHP EQUALITY -- An experiment: 0 == "": TRUE. 0 == "0": TRUE. "" == "0": FALSE. 'none' == 0: TRUE.