Symfony\Component\DomCrawler\Crawler::reduce
Reduces the list of nodes by calling an anonymous function.
To remove a node from the list, the anonymous function must return false.
Signature
public function reduce(Closure
$closure )
Parameters
$closure
— \Closure- An anonymous function
Returns
- Crawler
- A Crawler instance with the selected nodes.