Why is '==' not working in PHP?
<p>Both values are '2' but I am not getting a true. Why?       </p>

<pre><code> echo $getuser. "&lt;br /&gt;"; 
 echo $userurl. "&lt;br /&gt;"; 
   if ($getuser == $userurl) {  
       echo "true &lt;br /&gt;";
     }
</code></pre>

<p>Result</p>

<pre><code>2
2
</code></pre>
