title: array_map - "Argument passed must be of the type array, string given" error
body: <p>I am not sure why the following does not work. I get the above error (topic): </p>
  
  <pre><code>$array = array (); //something goes in here
  
  function del_space(array $a){
  foreach($a as $key =&gt; $value){
      preg_replace("/; +/", "", $value); 
      }
  }
  
  $no_space = array_map("del_space", $array); 
  </code></pre>