I'm a curious programmer. So these days I was reading the documentation from the PHP site and this link was "PHP type comparisons" http://www.php.net/manual/en/types.comparisons.php
I decided to do some exercises to fill the tables of comparisons but there are some answers that I can not see why, for example:
<?php
var_dump(false == array()); // Okay, an empty array is considered false. True result
var_dump('' == array()); // false ? Why not true if an empty string is considered false ?
var_dump(0 == array()); // false ? Why ?
var_dump(null == array()); // true. Why ?
?>
Can you help me about this? I can not understand why some comparisons, I can not find anywhere explanation.