①、帝国网站 =esub($bqr[classname],4)?> 显示是"帝国" (这是灵动标签默认的截取标签字段"esub"),
②、如果显示"网站"两字用php的"substr"函数:=substr($bqr[classname],2,2)?>
实例1、截取"帝国网站"前面的"帝国"两个文字,用=esub($bqr[classname],4)?>
[e:loop={'select * from phome_enewsclass where bclassid=0 order by classid DESC limit 6',0,24,0}]
=esub($bqr[classname],4)?> [/e:loop]
实例2:截取"帝国网站"后面的"网站"两个文字,用php的"substr"函数
[e:loop={'select * from phome_enewsclass where bclassid=0 order by classid DESC limit 6',0,24,0}]
=substr($bqr[classname],4,4)?> [/e:loop]
版权声明: 本站资源均来自互联网或会员发布,如果侵犯了您的权益请与我们联系,我们将在24小时内删除!谢谢!