MongoLite\Cursor::each PHP Method

each() public method

Loop through result set
public each ( mixed $callable ) : object
$callable mixed
return object
    public function each($callable)
    {
        foreach ($this->rewind() as $document) {
            $callable($document);
        }
        return $this;
    }