You are here

public function Crawler::last in Zircon Profile 8.0

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

Returns the last node of the current selection.

Return value

Crawler A Crawler instance with the last selected node

File

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

Class

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

Namespace

Symfony\Component\DomCrawler

Code

public function last() {
  return $this
    ->eq(count($this) - 1);
}