title: strcmp() expects parameter 2 to be string, object given
body: <p>M getting the following warning on my page:</p>
  
  <pre><code>"strcmp() expects parameter 2 to be string, object given"
  </code></pre>
  
  <p>My code is as below:
       a.php:</p>
  
  <pre><code> $x = $_GET['a'];
   $y = $_GET['b'];
   $obj = new TestClass();
   $obj-&gt;methodCall($x,$y)
  </code></pre>
  
  <p>TestClass:</p>
  
  <pre><code>class TestClass{
     public function methodCall($x,$y){
      if((strcmp('val1',$x) &gt; 0) &amp;&amp; (strcmp('val2',$y) &gt;0)){
        //do something
      }
     }
   }
  </code></pre>
  
  <p>Getting the warning at line where I am using strcmp. It looks pretty straight forward, but not able to figure out the problem :(</p>