Saturday, 15 May 2010

php - get some words in html using simple_html_dom -



php - get some words in html using simple_html_dom -

i wanna zumbai, n, , something line of html below simple_html_dom:

<p> <div align="left" style="margin: 0.00mm 0.00mm ;"> <p style="font-family: arial; font-size: 1.0em;"> <b>zumbai</b> <i>n</i> </p> </div>

here's code :

foreach($html->find('div.align') $tag1) { foreach($tag1->parent()->find('p.style') $tag2){ $words1 = $tag2->first_child(); $words11= $words1->plaintext; $words2 = $tag2->first_child()->first_child(); $words22= $words2->plaintext; } }

but doesn't works. give thanks :)

php html simple-html-dom

No comments:

Post a Comment