I want to take all element in html file.
$crawler = new Crawler($html);
for($i = 0; $i < $crawler->filter("div")->count(); $i++){
$div = $crawler->filter("div")->html();
Doing this I always take the first div element: How can I take all div element and add in an array? Thanks