Created
October 20, 2017 18:12
-
-
Save davidchc/258213c5ae8ad79f21ca2079b7125958 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $menu = [];?> | |
<?php foreach($items as $item) : ?> | |
<?php if(!in_array($item['menu'], $menu)) : ?> | |
<h3><?php echo $item['menu']?></h3> | |
<?php $menu[] = $item['menu'];?> | |
<?php endif;?> | |
<p><?php echo $item['subMenu']?></p> | |
<?php endforeach?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment