Hi all. Is there a function to strip all alpha characters?? Thanks
There is now:
function strip_alpha($str) { $new_str = ''; for ($i = 0; $i < strlen($str); $i++) { if (!ctype_alpha($str{$i})) { $new_str .= $str{$i}; } } return $new_str; }