title: Comparing String to Integer gives strange results
body: <p>I'm really confused as to why this operation works.  Can someone explain it?</p>
  
  <pre><code>$test1 = "d85d1d81b25614a3504a3d5601a9cb2e";
  $test2 = "3581169b064f71be1630b321d3ca318f";
  
  if ($test1 == 0)
    echo "Test 1 is Equal!?";
  if ($test2 == 0)
    echo "Test 2 is Equal!?";
  
  // Returns: Test 1 is Equal!?
  </code></pre>
  
  <p>For clarification, I am trying to compare the string <code>"0"</code> to the <code>$test</code> variables.  I already know to fix the code I can just enclose (as I should have) the <code>0</code> in <code>""</code>s</p>
  
  <p>I'm wondering if this is a PHP bug, a server bug, or somehow a valid operation.  According to <a href="http://us3.php.net/types.comparisons" rel="noreferrer">http://us3.php.net/types.comparisons</a> this <strong>should not</strong> have worked.</p>
  
  <p><strong>Edit:</strong> Scratch that, apparently it does mention that Loose comparisons between string and 0 is true.  But I still don't know why.</p>
  
  <p><strong>Edit 2:</strong> I've revised my question, why does the <code>$test2</code> value of <code>"3581169b064f71be1630b321d3ca318f"</code> not work?</p>