PHP Tricks: Easily eliminate any unwanted characters from a string

2008年06月30日 16:28 • 查看 15 次 • 打印本文

I wanted to scrub any characters out of a string that were not alphanumeric. So, I wrote this function that uses a simple regular expression to detect the unwanted characters.

查看原文 »

评论

发表评论