title: PHP array with value returns NULL
body: <p>I have an array which is converted from CSV file. I have there two keys ID and NAME. </p>
  
  <p>If I show key NAME everything is OK. But when i tried to get key ID, i always get NULL but key ID have value set.</p>
  
  <p><img src="https://i.stack.imgur.com/aSIjK.png" alt="enter image description here"></p>
  
  <pre><code>function convertCsvToArray($filename='', $delimiter=';')
  {
    if(!file_exists($filename))
      return FALSE;
  
    $header = NULL;
    $data = array();
    if (($handle = fopen($filename, 'r')) !== FALSE)
    {
      while (($row = fgetcsv($handle, 1000, $delimiter)) !== FALSE)
      {
        if(!$header)
          $header = $row;
        else
          $data[] = array_combine($header, $row);
      }
      fclose($handle);
    }
    return $data;
  }
  
  $array = convertCsvToArray('/path/to/csv/categories.csv',';');
  
  /*
  $array structure is
    array(2){
      ["ID"] =&gt; 3
      ["NAME"] =&gt; Some name
    }
  */
  foreach($array as $category){
    var_dump($category["ID"]); //return NULL
    var_dump($category["NAME"]); //return "Some name"
  }
  </code></pre>
  
  <p>CSV dump</p>
  
  <pre><code>ID;NAME
  3;Značkové nealko nápoje
  4;Nízkoenergetické nápoje
  5;Minerálne vody, sóda
  6;Tetrapack 0.2l a 0.5l
  </code></pre>
  
  <p>print_r for $array</p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [ID] =&gt; 3
              [NAME] =&gt; Značkové nealko nápoje
          )
  
      [1] =&gt; Array
          (
              [ID] =&gt; 4
              [NAME] =&gt; Nízkoenergetické nápoje
          )
  )
  </code></pre>
  
  <p>print_r for $category</p>
  
  <pre><code>Array
  (
      [ID] =&gt; 3
      [NAME] =&gt; Značkové nealko nápoje
  )
  </code></pre>