Symfony\Component\DomCrawler\Crawler::filter
Filters the list of nodes with a CSS selector.
This method only works if you have installed the CssSelector Symfony Component.
Signature
public function filter(string
$selector )
Parameters
$selector
— string- A CSS selector
Returns
- Crawler
- A new instance of Crawler with the filtered list of nodes
Errors/Exceptions
-
RuntimeException
- if the CssSelector Component is not available