$this->nodes
[] =
$node;
} /**
* Returns a node given its position in the node list.
*/
public function eq(int
$position):
static { if (isset($this->nodes
[$position])) { return $this->
createSubCrawler($this->nodes
[$position]);
} return $this->
createSubCrawler(null
);
} /**
* Calls an anonymous function on each node of the list.
*
* The anonymous function receives the position and the node wrapped
* in a Crawler instance as arguments.
*
* Example:
*
* $crawler->filter('h1')->each(function ($node, $i) {
* return $node->text();
* });
*
* @param \Closure $closure An anonymous function
*
* @return array An array of values returned by the anonymous function
*/