Why does this evaluate to true?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/5894350/why-does-0-hello-return-true-in-php">Why does (0 == ‘Hello’) return true in PHP?</a>  </p>
</blockquote>



<pre><code>&lt;?php
echo ('names' == 0) ? 1 :0;
?&gt;
</code></pre>

<p>Evaluates to TRUE</p>

<p>If I add an extra equals sign it will work, but this is counter intuitive.</p>

<pre><code>&lt;?php
echo ('names' === 0) ? 1 :0;
?&gt;
</code></pre>

<p>Evaluates to FALSE</p>

<pre><code>&lt;?php
echo ('names' == FALSE) ? 1 :0;
?&gt;
</code></pre>

<p>Evaluates to FALSE</p>

<p>Also found this:
<a href="http://stackoverflow.com/questions/12151997/why-does-1234-1234-test-evaluate-to-true?rq=1">Why does 1234 == &#39;1234 test&#39; evaluate to true?</a></p>
