PHP strcmp not giving correct output
<blockquote>
  <p>I am comparing two string by <code>strcmp(1,2)</code> and i am getting "-1 " insted of 1 my code is below </p>
</blockquote>

<pre><code>  &lt;?php
    echo strcmp(1,2);
   ?&gt;
</code></pre>

<p>output:-1 </p>

<p><img src="http://i.stack.imgur.com/jAJxs.jpg" alt="enter image description here"></p>

<p>please let me know why i am getting -1 for false and how to handle it ?</p>
