I just can't figure out how to do this, I was trying to do this but didn't work
function remove($myarray){
if (in_array(" ", $myarray)){
foreach($myarray as $show){
if(($show == " ") || (empty($show))){
unset($show);
exit();
}
}
exit();
}
return $myarray;
}
Any ideas ?