This can be solved in several ways. One method would be regular expressions, and another one would be to write a function for this;
function stripstring($string) {
$stripThis = " ,.125()!#ยค";
$ret = $string;
for ($z = 0; $z < strlen($stripThis); $z++) {
$ret = str_replace(substr($stripThis, $z, 1), "", $ret);
}
return $ret;
}
This would (hopefully) replace every char in $stripThis with blank.