or this code
.................................................................................
include('simple_html_dom.php');
$get=str_get_html('<h1>a</h1><h1>b</h1>........<h1>e</h1>');
foreach($get->find('h1') as $ex) {
@$get1 .= ($ex->outertext).'';
}
...................................................................................................
How can I do, to have, as a result
<h1 id="0">a</h1>
<h1 id="1">b</h1>
.......................
<h1 id="4">e</h1>
Regards