将表单的<textarea> 中的中文写入 文本文档index.txt,然后再读取回到<textarea>,发现中文后面有很多隐含的空格,怎样去掉这些空格呢?我用$str2=str_replace(" ","",$fp2); 去掉空格,但是最终的index.txt中什么都没有了。不能写入内容了?//写入文档
$index = $_POST['me_index'];@ $fp2=fopen("../../head/index.txt",'w+');fwrite($str2,$index);fclose($fp2);
$index = $_POST['me_index'];@ $fp2=fopen("../../head/index.txt",'w+');fwrite($str2,$index);fclose($fp2);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货