title: Keep triggering an error from is_numeric even though number is numeric
body: <p>I have a some values that I'm pulling from my database and putting those numbers into text boxes that will be submitted to gather rate quotes. However, on those text boxes I have setup error checking one of which is, is_numeric.</p>
  
  <p>For some reason every time I populate the text box from the DB it triggers this error and I have no idea why.</p>
  
  <p>I have tried:</p>
  
  <ul>
  <li>Converting the number to an INT</li>
  <li>Converting the number to number_format and then removing the decimals and trailing 0's</li>
  </ul>
  
  <p>I have also tried some other things too but nothing works. Any body have any idea how I can troubleshoot this? I'm out of ideas.</p>
  
  <p>Thanks</p>
  
  <p>Edit:</p>
  
  <p>Everyone wants code but there isn't much to show. </p>
  
  <p>Error checking:</p>
  
  <pre><code>        if (!is_numeric($weight)) {
            $errors[] = '&lt;div style="width:780px;" class="alert alert-danger"&gt;&lt;i class="glyphicon glyphicon-exclamation-sign"&gt;&lt;/i&gt;&amp;nbsp;Weight must be a number.&lt;/div&gt;';
          }
  </code></pre>
  
  <p>Grabbing DB value:</p>
  
  <pre><code>       $prod_weight = $row1['weight'];
  </code></pre>
  
  <p>I'm really not sure what else you guys what to see.</p>