Forum Moderators: coopster
Or, you could just loop through the array ...
foreach($array_name as $id=>$value){ $array_name[$id] = trim($value); }
-sned
<edit> Oo .. I haven't looked at the array_map function, looks cool </edit>
for($i=0;$i<count($yourArray);$i++) { $yourArray[$i]=trim($yourArray[$i]); }