How do I extract all HTML tags from a webpage into an array?

all guest beds

New Member
I need to extract all HTML tags from a webpage into an array without the data inside the tags. It would look something like...I'm using PHP\[code\]Array { html => Array { head => Array { title, meta name='description' content='bla bla' meta name='keyword' content='bla bla' .... }, body => Array { div id='header' => Array { div class='logo', div class='nav' }, div id='content' => Array { h1, p class='first-para', p, p, div id='ad' }, div id='footer' => Array { ul => Array { li => Array { a href='http://stackoverflow.com/questions/3873489/link.htm' }, li => Array { a href='http://stackoverflow.com/questions/3873489/link.htm' }, li => Array { a href='http://stackoverflow.com/questions/3873489/link.htm' } } } } }}\[/code\]
 
Back
Top