Jeff Oien wrote:
Is there an easy way to strip out everything but letters and numbers from a string? I tried searching the archives and didn't come up with much. Thanks.
Jeff



$string = preg_replace('/[^a-z0-9]/i', '', $string);

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to