this seemed to do the trick:
foreach($mymenu as $item) {
echo '<a href="'.$item['path'].'"class="'.$item['attributes']['class'][0] . ' ' .$item['attributes']['class'][1].'" />"https://stackoverflow.com/questions/26134454/. $item["title'] . '</a> <br>';
}
solved PHP function print data from array [closed]