in reply to array manipulation

Are you trying to convert the HTML to an array or do you have an array and are you trying to output HTML?

Please show us the code you have so far too.