I use PHP Simple HTML DOM Parser
How can I find such a unit?
<div style="display: inline-block;">FIND_ME</div> F...">
I use PHP Simple HTML DOM Parser
How can I find such a unit?
<div style="display: inline-block;">FIND_ME</div> The documentation says that the search is performed by CSS-selector. I quote:
mixed find (string $ selector [, int $ index]) - Find children by the CSS selector
Obviously, you need to use the appropriate CSS selector:
$html = file_get_html('http://www.google.com/'); // Ищем нужные элементы foreach($html->find('[style="display: inline-block;"]') as $element) { // Делаем дела } $html->find('div[style=display: inline-block;]',0); - Hardc0reSource: https://ru.stackoverflow.com/questions/535556/
All Articles