Right, I've searched all day long, html2array, html to json, html dom parser blah blah and I am struggling with this seemingly simple code.
I have the following html:
<ul>
<li>menu1</li>
<li>menu2
<ul>
<li>menu2.1</li>
</ul>
</li>
<li>menu3</li>
</ul>
And I need to convert them to a parent child relationship. Or a php multi-dimensional array. I'm totally lost and frustrated. I'm hoping someone has an idea.