function Crawler::eq
Returns a node given its position in the node list.
2 calls to Crawler::eq()
- Crawler::first in vendor/
symfony/ dom-crawler/ Crawler.php - Returns the first node of the current selection.
- Crawler::last in vendor/
symfony/ dom-crawler/ Crawler.php - Returns the last node of the current selection.
File
-
vendor/
symfony/ dom-crawler/ Crawler.php, line 295
Class
- Crawler
- Crawler eases navigation of a list of \DOMNode objects.
Namespace
Symfony\Component\DomCrawlerCode
public function eq(int $position) : static {
if (isset($this->nodes[$position])) {
return $this->createSubCrawler($this->nodes[$position]);
}
return $this->createSubCrawler(null);
}