title: Undefined index when index exists
body: <p>I have the following array, but whenever I try to use $array['b'], it complains Undefined index!! Why??</p>
  
  <pre><code>[6] =&gt; Array
      (
          [a] =&gt; 10003
  
          [b] =&gt; value_3082
      )
  
  foreach ($array as $item) {
     $test = $item['b'];
  }
  </code></pre>