You are here

public function Crawler::first in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dom-crawler/Crawler.php \Symfony\Component\DomCrawler\Crawler::first()

Returns the first node of the current selection.

Return value

Crawler A Crawler instance with the first selected node

File

vendor/symfony/dom-crawler/Crawler.php, line 402

Class

Crawler
Crawler eases navigation of a list of \DOMElement objects.

Namespace

Symfony\Component\DomCrawler

Code

public function first() {
  return $this
    ->eq(0);
}