logo

更新時間:

足球

帝国CMS灵动标签调用复选框字段怎么去除竖线“|”

建站之家

 模板内请使用这段代码:

<?=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功能代码的开始和结束

友情鏈接

Copyright © 2024 chakd 版权所有. All Rights Reserved.

冀ICP备20230sdf26749号-1