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 b36ba09 commit 7b931e2Copy full SHA for 7b931e2
testing.rst
@@ -729,6 +729,8 @@ Extracting Information
729
730
The Crawler can extract information from the nodes::
731
732
+ use Symfony\Component\DomCrawler\Crawler;
733
+
734
// returns the attribute value for the first node
735
$crawler->attr('class');
736
@@ -749,7 +751,7 @@ The Crawler can extract information from the nodes::
749
751
$info = $crawler->extract(['_text', 'href']);
750
752
753
// executes a lambda for each node and return an array of results
- $data = $crawler->each(function ($node, $i) {
754
+ $data = $crawler->each(function (Crawler $node, $i) {
755
return $node->attr('href');
756
});
757
0 commit comments