解决了不 就把空格之类的去掉啊 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 trim($s)把字符串两边的空白字符删除 //替换掉所有空格$a = "f fds fdsaf fdsafd fdsa w fe f f fds a ";$s = array(" " => "", " " => ""," "=>""," "=>""," "=>"");$b=strtr($a, $s);Echo '<textarea style="width:100%;height:200px">',$b,'</textarea>'; trim()str_replace()preg_replace() 请问如何强制刷新php页面,不要让它用cache的data? 如何屏蔽 表单提交过来的数据? 求一正则表达式~! 跪请 PHP的一个奇怪问题 来一个难的问题高手入 oracle连接报错,看了好多帖子都不行啊! 笨蛋的问题![只要给出意见的大侠都给分!] ftp、mysql,php问题 微信的永久素材有些删不了? big5网页乱码 header("Location: empManage.php")页面跳转到空白页,求解
把字符串两边的空白字符删除
//替换掉所有空格
$a = "f fds fdsaf fdsafd fdsa w fe f f fds a ";
$s = array(" " => "", " " => ""," "=>""," "=>""," "=>"");
$b=strtr($a, $s);
Echo '<textarea style="width:100%;height:200px">',$b,'</textarea>';
str_replace()
preg_replace()