title: PHP loose comparison with ==
body: <p>I'm a curious programmer. So these days I was reading the documentation from the PHP site and this link was "PHP type comparisons" <a href="http://www.php.net/manual/en/types.comparisons.php" rel="nofollow">http://www.php.net/manual/en/types.comparisons.php</a></p>
  
  <p>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:</p>
  
  <pre><code>&lt;?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 ?
  ?&gt;
  </code></pre>
  
  <p>Can you help me about this? I can not understand why some comparisons, I can not find anywhere explanation.</p>