Stripping chars in string but leaving numerics

From: Date: Wed, 02 Aug 2000 08:01:28 +0000
Subject: Stripping chars in string but leaving numerics
Groups: php.general 
Request: Send a blank email to php-general+get-9640@lists.php.net to get a copy of this message
I need advice on how i should strip all characters in a string(including special chars) but leave numbers (0-9) and store this in a $formatted_string. Any ideas how i do this an easy way? So if i have a string with value "abcd*()123" i want the output to be "123" Thanks in advance. Anders

« previous php.general (#9640) next »