This is the PHP functions that removes special character of a string. Assign a string value to parameter $string ad the function will return string value that don't have special character.
function removeSpclChar( $string ){
$regExp = "/\~|\!|\@|\#|\$|\%|\^|\&|\*|\(|\)|\+|\|";
$regExp .= "|\\\|\{|\}|\{|\]|\'|\"|\:|\;|\,|\<|\>|\+|\/|\`|\?/";
return preg_replace($regExp, NULL, $string);
}
Please feel free to make a comment and suggestion on this tutorial. Your comment and suggestion will help improve the tutorial for the benefit of you and others. Thank you...