PHP if/else is not working as it should
<p>I have the following code:</p>

<pre><code>if($value1 &gt;= $value2){
    echo "Value 1 is greater or equal to value 2";
}else{
    echo "Something else";
}
</code></pre>

<p>The variables $value1 and $value2 are having their values from a database. The problem is that whenever this code run, it always echo the "Something else". Even if value1 is greater than value2.</p>

<p>Both of the variables are numbers. When I echo them:</p>

<pre><code>echo $value1 . " and " . $value2;
</code></pre>

<p>I have the following result: <code>1300 and 500</code></p>

<p>Does anyone know what is causing this problem?</p>