hi I have this function which strips out some characters from teh string. I would like it to exclue the following:
====================================
(double quotes("),single quotes(') semi colon(;) tab space .
====================================
This is the function
function cleanname($thename){
$patternCounter=0;
$patterns[$patternCounter] = '/[\x21-\x2d]/u'; // remove range of shifted characters on keyboard - !"#$%&'()*+,-
$patternCounter++;
$patterns[$patternCounter] = '/[\x5b-\x60]/u'; // remove range including brackets - []\^_`
$patternCounter++;
// $patterns[$patternCounter] = '/[\x7b-\xff$]/u'; // remove all characters above the letter z. This will eliminate some non-English language letters
// $patternCounter++;
$replacement ="";
return preg_replace($patterns, $replacement, $thename);
}
Thank you