A
A
Anton2016-10-11 16:22:43
PHP
Anton, 2016-10-11 16:22:43

How to parse blocks by class?

Hello. There are blocks on the page, they can have the class cl1 and cl2 when parsing one class wrote so $dom->find("div[class=cl1]")you can somehow parse with two classes?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Muhammad, 2016-10-13
@muhammad_97

https://github.com/imangazaliev/didom:
$document->find('div.class1.class2');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question