classes/FetchedResult.php
public function each(callable $closure)
    {
        $results = [];
        foreach ($this->rows as $row) {
            $results[] = $closure(...array_values($row));
        }

        return $results;
    }
public function each(callable $closure)
    {
        $results = [];
        foreach ($this->rows as $row) {
            $results[] = $closure(...array_values($row));
        }

        return $results;
    }
public function each ( callable $ closure ) { $ results = [ ] ; foreach ( $ this -> rows as $ row ) { $ results [ ] = $ closure ( ... array_values ( $ row ) ) ; } return $ results ; }
Call a closure for each row

@param callable $closure
@return array
Call a closure for each row