The parser displays only the last element with the class motion and there are several of them on the page. How to bring all?
- show what you are doing. try to tell - splash58
- $ html = file_get_html (' site.ru' ); foreach ($ html-> find (". motion") as $ elsements) {$ categories = $ elsements; } echo $ categories; displays only the last block with this class - Djamali Meslaurov
- foreach ($ html-> find (". motion") as $ elements) {$ categories [] = $ elements; } - Djamali Meslaurov
- in appearance, everything is correct. and the length of the array is also 1? - splash58
- make sure no other AYAX blocks are added. Right-click on the page in the browser and see the source html code, how many blocks there are - teran
|