Logic in PHP, why is this happening?
<pre><code>function x() {return -1;}
echo x();
echo "&lt;br&gt;";
if(x()) {echo "True";} else {echo "False";}
</code></pre>

<p>output:</p>

<pre><code>-1
True
</code></pre>

<p>Why am I getting 'True' outputted, surely the <code>if()</code> test would fail as it's negative?</p>
