帝國CMS靈動標簽調用復選框字段怎么去除豎線“|”
發布時間:2019-11-05 來源:未知 瀏覽: 關鍵詞:
模板內請使用這段代碼:
<?=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功能代碼的開始和結束
責任編輯:實速科技