• 冒险村物语
  • 英雄无敌3塔防
  • 驾考家园手游

PHP去掉html中的空行、空白函数

2015-05-27

[php] 
function DeleteHtml($str){ 
                    $str = trim($str); 
                    $str = ereg_replace("/t","",$str); 
                    $str = ereg_replace("/r/n","",$str); 
                    $str = ereg_replace("/r","",$str); 
                    $str = ereg_replace("/n","",$str); 
                    return trim($str); 
                } 
(免责声明:文章内容如涉及作品内容、版权和其它问题,请及时与我们联系,我们将在第一时间删除内容,文章内容仅供参考)

人气推荐

知识阅读

精彩推荐

  • 游戏
  • 软件
查看更多>>