一个急需处理的问题,大家关注,谢谢 $text=ereg_replace(" (?:\W)"," ",$text); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 $text=ereg_replace(" "," nbsp;",,$text);注意这里后面的空格是特殊性字符是双字节的,支持换行... $str=preg_replace("/<br>/i","",$str);$str=stripslashes($str);$str=str_replace('<','<',$str);$str=str_replace('>','>',$str);$str=str_replace(" "," ",$str);$str=str_replace("\r","<BR>",$str);$str=preg_replace("/\s/"," ",$str);用上面的就行了。 ╔════════════╗╔════════════╗ ║⊙⊙中国项目交易在线⊙⊙║║⊙⊙生活情感世界社区⊙⊙║ ║ http://www.pc80.com ║║ http://love.pc80.com ║ ╚════════════╝╚════════════╝ 这问题的解决方法是function text_dowith($text){ $text=htmlspecialchars($text); $text=ereg_replace("\n","<br/>",$text); $text=ereg_replace(" "," ",$text); $text=addslashes($text); return $text;}自己搞定。 请问oci_bind_by_name的写法如何支持in语句查询? 招PHP兼职程序员,北京 【求助】一个留言板修改功能出现问题 哪位老大帮忙看看联运菜单的"数组生成"代码含义,谢谢! session_start输出问题 PHP安装上了,安装文件也删了,但不能进入后台? 新手问有关文件的修改简单问题 我连最基本的提交多搞不明白了,请高手解答 请问如何在php中加入css和javascript login.html.php这种是什么文件? 高手进来看看这段程序有哪些错误? php模板提速问题
注意这里后面的空格是特殊性字符是双字节的,支持换行...
$str=stripslashes($str);
$str=str_replace('<','<',$str);
$str=str_replace('>','>',$str);
$str=str_replace(" "," ",$str);
$str=str_replace("\r","<BR>",$str);
$str=preg_replace("/\s/"," ",$str);用上面的就行了。 ╔════════════╗╔════════════╗
║⊙⊙中国项目交易在线⊙⊙║║⊙⊙生活情感世界社区⊙⊙║
║ http://www.pc80.com ║║ http://love.pc80.com ║
╚════════════╝╚════════════╝
function text_dowith($text)
{
$text=htmlspecialchars($text);
$text=ereg_replace("\n","<br/>",$text);
$text=ereg_replace(" "," ",$text);
$text=addslashes($text);
return $text;
}
自己搞定。