New value must be greater and diferrent
<p>I'm trying to compare the value entered by user (<code>$b</code>) with another value which is retrieved from my database tables (<code>$a</code>).</p>

<p>In theory, the below code should retrieve error 1 but it's not. Can you please help me understand what I'm doing wrong?</p>

<pre><code>{$a=array('54607');
$b=array('54606');

if($a &lt; $b){
   echo "error 1";
}elseif($a == $b){
   echo "error 2";
}else{
   echo "TRUE";
}
</code></pre>

<p>P.S. I'm a newbie in PHP so please be gentle and sorry in advance for any silly questions I may have.</p>