I'm using PHP simple dom parser, says my markup is like this
<table class="tb">..</table>
<table>..</table>
<table>..</table>
I tried
$banner = '<div class="ads">blablabla</div>';
foreach($html->find('tb') as $table){
$table->outertext .= $banner;
}
but it loops all the table. I tried find('div[class="tb"][1]')
but it doesn't work. I want a div appear only once btw the first and second table.