模板內請使用這段代碼:
<?=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功能代碼的開始和結束