模板内请使用这段代码:
<?=esub(str_replace("|"," ",$bqr[test]),10)?>
具体解析:
$bqr[test] 代表灵动标签调用字段test
str_replace("|"," ",$bqr[test] 代表替换结果中的“|”为空
esub(str_replace("|"," ",$bqr[test]),10) 代表截取10个字符
<?=esub(str_replace("|"," ",$bqr[test]),10)?> 代表模板内插入这段PHP功能代码的开始和结束
扫一扫手机访问
