I want to customize my pages-menu more. It would be best to make the menu to an array. Then I can print it with a foreach loop (to ul-list). Then I can access the first and last menu items (li) to add span elements in them.
How do I make this possible?