This removes the commas *and* the decimal point:
preg_replace('/\D/', '', $str)
In reviewing patterns, I cannot find the purpose of the "/" character in the
above.
Many thanks....
Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

