Posted by Mike Youell on 04/10/06 04:34
I'd use preg_replace() instead: $subject = "abc-d%ef"; // Want i want to get back is 'abcdef' $pattern = '/[^a-zA-Z]*/'; echo preg_replace($pattern, '', $subject); Cheers, Mike Youell.
[Back to original message]
Copyright © 2005-2006 Powered by Custom PHP Programming