如何循环带条件的数组
<br />$abc=array( <br />[navigation_list] => Array<br /> (<br /> [0] => Array<br /> (<br /> [navigation_id] => 1<br /> [navigation_title] => 题目1<br /> [navigation_link] => http://127.0.0.1/<br /> [navigation_sort] => 255<br /> [navigation_open_type] => 1<br /> )<br /><br /> [1] => Array<br /> (<br /> [navigation_id] => 2<br /> [navigation_title] => 题目2<br /> [navigation_link] => http://127.0.0.1/circle<br /> [navigation_sort] => 255<br /> [navigation_open_type] => 1<br /> )<br /><br /> [2] => Array<br /> (<br /> [navigation_id] => 3<br /> [navigation_title] => 题目3<br /> [navigation_link] => http://127.0.0.1/microshop<br /> [navigation_sort] => 255<br /> [navigation_open_type] => 1<br /> )<br /><br /> [3] => Array<br /> (<br /> [navigation_id] => 4<br /> [navigation_title] => 题目4<br /> [navigation_link] => http://127.0.0.1/shop/index.php?act=brand<br /> [navigation_sort] => 255<br /> [navigation_open_type] => 1<br /> )<br /><br /> )<br />)<br />
<br /><?php <br /> <br /> if ($abct[navigation_list][navigation_id]>2 || $output[navigation_list][navigation_id]>5){<br /> foreach($output['navigation_list'] as $value) {?><br /> <li class="link"><a href="<?php echo $value['navigation_link'];?>" <?php echo $value['navigation_open_type']=='1'?'target="_blank"':'';?>><?php echo $value['navigation_title'] ?></a></li><br /> <?php } ?><br /> <?php }?><br />
<?php <br /> foreach($abc['navigation_list'] as $value) {?><br><?php if ($value['navigation_id']>2){ ?> <div class="clear"> </div>