时间:2021-07-01 10:21:17 帮助过:7人阅读
$abc=array(
[navigation_list] => Array
(
[0] => Array
(
[navigation_id] => 1
[navigation_title] => 题目1
[navigation_link] => http://127.0.0.1/
[navigation_sort] => 255
[navigation_open_type] => 1
)
[1] => Array
(
[navigation_id] => 2
[navigation_title] => 题目2
[navigation_link] => http://127.0.0.1/circle
[navigation_sort] => 255
[navigation_open_type] => 1
)
[2] => Array
(
[navigation_id] => 3
[navigation_title] => 题目3
[navigation_link] => http://127.0.0.1/microshop
[navigation_sort] => 255
[navigation_open_type] => 1
)
[3] => Array
(
[navigation_id] => 4
[navigation_title] => 题目4
[navigation_link] => http://127.0.0.1/shop/index.php?act=brand
[navigation_sort] => 255
[navigation_open_type] => 1
)
)
)
if ($abct[navigation_list][navigation_id]>2 || $output[navigation_list][navigation_id]>5){
foreach($output['navigation_list'] as $value) {?>
foreach($abc['navigation_list'] as $value) {?>
2){ ?>