1function remove_bs($Str) {
2 $StrArr = str_split($Str); $NewStr = '';
3 foreach ($StrArr as $Char) {
4 $CharNo = ord($Char);
5 if ($CharNo == 163) { $NewStr .= $Char; continue; } // keep £
6 if ($CharNo > 31 && $CharNo < 127) {
7 $NewStr .= $Char;
8 }
9 }
10 return $NewStr;
11}