I want to turn the following array into a nested list in html.

```
$aMenu = array(
array("name" => "Page 1", 
      "url" => "http://www.microsoft.se", 
      "subpages" => array(
        array("name" => "Subpage 1.1", "url" => "http://www.reddit.com"),
        array("name" => "Subpage 1.2", "url" => "http://www.google.se"),          
        array("name" => "Subpage 1.3", "url" => "http://www.cnn.com"),
    )               
),          
array("name" => "Page 2", "url" => "http://www.facebook.com"),
array("name" => "Page 3",
      "url" => "http://www.bbc.co.uk",
      "subpages" => array(
          array("name" => "Subpage 3.1", "url" => "http://www.jamesedition.com"),
          array("name" => "Subpage 3.2", "url" => "http://www.huffpost.com"),
          array("name" => "Subpage 3.3", 
                "url" => "http://www.lagunitas.com",
                "subpages" => array(
                    array("name" => "Subpage 3.3.1", "url" => "http://www.burton.com"),
                    array("name" => "Subpage 3.3.2", "url" => "http://www.hm.com"),
                    array("name" => "Subpage 3.3.3", "url" => "http://www.apple.com"),
                ),
          ),
      ),                                
),
array("name" => "Page 4", "url" => "http://www.instagram.com"),
array("name" => "Page 5", "url" => "http://www.flickr.com"),
);

```

Desired output:

* Page 1
	+ Subpage 1.1
	+ Subpage 1.2
	+ Subpage 1.3
* Page 2
* Page 3
	+ Subpage 3.1
	+ Subpage 3.2
	+ Subpage 3.3
		- Subpage 3.3.1
		- Subpage 3.3.2
		- Subpage 3.3.3
* Page 4
* Page 5

I know how to do this manually and I know how to loop through single levels of the array but I cannot figure out how to loop through it all and output the results into nested lists. I have seen separate solutions to these problems but I can't seem to make them work together. Any help would be appreciated.