Array foreach loop PHP
问题 Hello everyone here is my case: I'm crawling through the old page with more than 10 000 comments which I'm trying to import to WordPress. I'm using simple_html_dom.php library, which in this case is not important. What I'm doing is getting a URL with 24 first posts crawling through them and getting an element with comments. $url = 'http://xx/aktualnosci,wszystkie,0,'.$x.'.html'; //some URL with first 24 posts $html = file_get_html($url); $articlesCount = 0; $commentsCount = 0; foreach ($html-