src/PHPHtmlParser/Dom/Collection.php
public function each(callable $callback)
    {
        foreach ($this->collection as $key => $value) {
            $callback($value, $key);
        }
    }
public function each(callable $callback)
    {
        foreach ($this->collection as $key => $value) {
            $callback($value, $key);
        }
    }
public function each ( callable $ callback ) { foreach ( $ this -> collection as $ key => $ value ) { $ callback ( $ value , $ key ) ; } }
Similar to jQuery "each" method. Calls the callback with each
Node in this collection.

@param callable $callback
Similar to jQuery each method . Calls the callback with each Node in this collection .