php 删除换行符

php 删除换行符

$text=str_replace("\n","",$text);
$text=str_replace("\r","",$text);
$text=str_replace("\r\n","",$text);

posted @ 2011-06-22 18:16  wangkangluo1  阅读(4889)  评论(0编辑  收藏  举报