I'm using the "PHP Simple HTML DOM Parser" -
http://simplehtmldom.sourceforge.net/manual.htmI'm running through a bunch of elements and I need to determine what kind of element it is that I'm returning.
For example
<html>
<div id='wrap'>
<h1>Heading</h1>
<p>something</p>
<p>something</p>
<h2>Second Heading</h2>
</div>
</html>
//PHP
$html = 'http://somehtmldoc.html'
foreach($html->find('div[id=wrap]') as $thing) {
$var = $thing->this should tell me if it's an h4, p, h1, etc.
}
Any help is much appreciated.
Thanks,
Joe