标签:io ar cti sp on c php js 字符串
<?php
function trimall($str)//删除空格
{
$qian=array(" "," ","\t","\n","\r");$hou=array("","","","","");
return str_replace($qian,$hou,$str);
}
$i=" heasdfj jasdf ajsdo ";
$j=trimall($i);
echo $j;
?>
标签:io ar cti sp on c php js 字符串
原文地址:http://my.oschina.net/guomingliang/blog/306003