at 10年前 ca 记录笔记 pv 1235 by authorhu
<?php $str = $navinfor[title]; $str = mb_substr($str,0,2,'utf-8'); ?> [e:loop={'news',10,3,0,"title like '%$str%'",''}] <li><a href="<?=$bqsr['titleurl']?>" target="_blank"><?=esub($bqr[title],24)?></a></li>[/e:loop]
截取当前标题前2个字符 模糊匹配news表10个信息调用
本文仅代表作者观点,未经许可,不得转载。
分享:
支付宝
微信