title: PHP comparing boolean with integer
body: <pre><code>var_dump((int) true); // returns 1
  var_dump(true &gt; 0);  // returns true
  var_dump(true &gt; - 1); // returns false
  var_dump(1 &gt; - 1); // returns true
  </code></pre>
  
  <p>Can somebody explain me in detail what the results of those two above are because it is comparing boolean with integer and it is confusing to me.</p>