解析されたHTMLのすべてのノードをフェッチするように取り組んでいます。そのために、SimpleHTMLDOMパーサーに取り組んでいます。これですべてのdivまたはすべてのspanタグを取得できます。
foreach($html->find("div") as $e)
{
//here I got all div tags which are contained in html object but I want all tags not divs
//then I am addin coustom attribute like this way
$e->setattribute("My_id","abc");
}
どんな助けでも大歓迎です。