We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e356afe commit 5a70fcdCopy full SHA for 5a70fcd
components/dom_crawler.rst
@@ -114,7 +114,8 @@ To remove a node the anonymous function must return false.
114
.. note::
115
116
All filter methods return a new :class:`Symfony\\Component\\DomCrawler\\Crawler`
117
- instance with filtered content.
+ instance with the filtered content. To check if the filter actually
118
+ found something, use ``$crawler->count() > 0`` on this new crawler.
119
120
Both the :method:`Symfony\\Component\\DomCrawler\\Crawler::filterXPath` and
121
:method:`Symfony\\Component\\DomCrawler\\Crawler::filter` methods work with
0 commit comments