在内容模板你需要调用的地方使用如下代码输出简介即可过滤简介smalltext前后的空格了:
<?
$qian=array(" "," ","/t","/n","/r");$hou=array("","","","","");
$smalltext=str_replace($qian,$hou,$navinfor[smalltext]);
echo $smalltext;
?>
如果本文对你有帮助,欢迎打赏本站
在内容模板你需要调用的地方使用如下代码输出简介即可过滤简介smalltext前后的空格了:
<?
$qian=array(" "," ","/t","/n","/r");$hou=array("","","","","");
$smalltext=str_replace($qian,$hou,$navinfor[smalltext]);
echo $smalltext;
?>
如果本文对你有帮助,欢迎打赏本站