Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.2k
Closed
Labels
Milestone
Description
Crawler::each()
andCrawler::reduce()
now return Crawler instances instead of DomElement instances:
Before:
$data = $crawler->each(function ($node, $i) { return $node->nodeValue;});
After:
$data = $crawler->each(function ($crawler, $i) { return $crawler->text();});
These changes should get documented in thecomponents/dom_crawler
article in the following examples: