Oct 172009
$str = “@ % * alpha numeric 0 – 9 only _ – +@_#()()++”;
$str = preg_replace(‘/[^A-Za-z0-9]/’, ”, $str);
echo $str;
returns alphanumeric09only
$str = “@ % * alpha numeric 0 – 9 only _ – +@_#()()++”;
$str = preg_replace(‘/[^A-Za-z0-9]/’, ”, $str);
echo $str;
returns alphanumeric09only
Sorry, the comment form is closed at this time.