php中特殊字符回车、换行

在php中过滤回车、换行

\r   回车

\n  换行 

$str= str_replace(array("\n","\r"),"",$str);//过滤换行回车

posted @ 2012-11-02 18:05  KoMiles  阅读(2135)  评论(0编辑  收藏  举报