title: Unset not working in multiple foreach statements (PHP)
body: <p>Can someone tell me what is wrong with this code :</p>
  
  <pre><code>foreach ($data as $region ):
  
    foreach ($region as $type):
  
     foreach ($type as $type2):
  
      foreach ($type2 as $key=&gt;$val):
  
      if ($val=='background-color: FFFFFF;' || $val=='')  unset($type2[$key]);
  
      endforeach;
  
     endforeach;
  
    endforeach;
  
  endforeach;
  </code></pre>
  
  <p>After <code>print_r($data)</code> seems that the data array is the same and unset is not working</p>