Fred's Blog
Opensource with life.
Tuesday, December 12, 2006
PHP下的文本换行替换
今天遇到一个PHP下文本的换行替换问题,好无聊,在Windows或者Linux上有区别?不用管,用这个就好了
codeg_replace("~(?:\r)?\n~s", "", $str);
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment