基礎(chǔ)版
| 1 2 3 4 5 6 7 8 9 10 11 | <?php$morefr=explode('||||||',$navinfor[字段名稱]);$mfcount=count($morefr);for($mfi=0;$mfi<$mfcount;$mfi++){$morefrf=explode('::::::',$morefr[$mfi]);?><li><b><?=$morefrf[0]?></b><i><?=$morefrf[1]?></i><u><?=$morefrf[2]?></u></li><?php}?> |
自定義版本/適用于同頁面多個地方不同組合的調(diào)用
| 1 2 3 4 5 6 7 8 9 | <?php$morefr=explode('||||||',$navinfor[字段名稱]);$mfcount=count($morefr);for($mfi=0;$mfi<$mfcount;$mfi++){$morefrf=explode('::::::',$morefr[$mfi]);$自定義名稱1.=' '.$morefrf[0].' '.$morefrf[1].' '.$morefrf[2].' ';$自定義名稱2.=' '.$morefrf[2].' '.$morefrf[3].' '.$morefrf[4].' ';?> |
調(diào)用: <?=$自定義名稱1?> <?=$自定義名稱2?>
倒序版本
| 1 2 3 4 5 6 7 8 9 10 11 12 | <?php$morefr=explode('||||||',$navinfor[字段名稱]);rsort($morefr); // 添加此行即可倒序$mfcount=count($morefr);for($mfi=0;$mfi<$mfcount;$mfi++){$morefrf=explode('::::::',$morefr[$mfi]);?><li><b><?=$morefrf[0]?></b><i><?=$morefrf[1]?></i><u><?=$morefrf[2]?></u></li><?php}?> |
新聞熱點
疑難解答