Convert HTML DOM into a multidimensional array
- by dclowd9901
Where keys are represented by element type and values are represented by #foo and .bar (spaced and ready for explode()). Is it possible, or does something exist for it?
I know that this question might incite some wrath, and I'm hoping nobody links to that post about parsing HTML, but I'm hoping it's not impossible. Thanks for the help.
Addendum: Ideally, PHP would be used, since it's the only scripting language I know.