title: PHP string to integer not playing nice, encoding issue?
body: <p>I am reading in a CSV file (in UTF-8 encoding). One of the values is a number and when I try to cast it as an integer so I can do some calculations it is just being set to zero. What am I doing wrong? </p>
  
  <pre><code>var_dump ( $row3[_MM_Impressions] );
  //writes: string(5) "59"
  
  $imps = (int)$row3[_MM_Impressions];
  var_dump($imps);
  //writes: int(0) 
  
  $imps = $row3[_MM_Impressions]*1;
  var_dump($imps);
  //writes: int(0) 
  
  $imps = intval($row3[_MM_Impressions]);
  var_dump($imps);
  //writes: int(0) 
  </code></pre>