Forum Moderators: coopster
I often use the perl compatible expressions [php.net] though as they are a faster alternative:
$number = preg_replace("/[[:^digit:]]/", '', $number);