Unexpected result comparing strings
<p>I have two arrays <code>$oldInfo</code> and <code>$newInfo</code> where <code>$oldInfo</code> is existing data from the database and <code>$newInfo</code> is info entered by the user. If one specific field is different between the two I want to enter a new row in the database, if that one field is the same than I just update.</p>

<pre><code>if($oldInfo['col'] != $newInfo['col']){
    INSERT INTO ...
}
else
{
    UPDATE WHERE ...
}
</code></pre>

<p>The problem is that the if statement is always evaluating to true. I put an <code>echo ... die()</code> command in the if statement to print out the two values and they both look identical. <code>Old Info: 38mg/1, 20 New Info: 38mg/1, 20</code></p>

<p>Is there something specific about string comparison in PHP I am missing? These values seem to be exactly the same (in fact, $oldInfo is used to prepopulate the form so they should be the same) but the if statement is saying they are not the same.</p>
