public function each($cb)
    {
        foreach ($this->rows as $index=>$row) {
            $result = $cb($row, $index);
            if (is_array($result)) {
                $this->rows[$index] = $result;
            } else if ($result===false) {
                break;
            }
        }
        return $this;
    }
public function each($cb)
    {
        foreach ($this->rows as $index=>$row) {
            $result = $cb($row, $index);
            if (is_array($result)) {
                $this->rows[$index] = $result;
            } else if ($result===false) {
                break;
            }
        }
        return $this;
    }
public function each ( $ cb ) { foreach ( $ this -> rows as $ index => $ row ) { $ result = $ cb ( $ row , $ index ) ; if ( is_array ( $ result ) ) { $ this -> rows [ $ index ] = $ result ; } else if ( $ result === false ) { break ; } } return $ this ; }
Loop through each rows of data set

Examples:
$store->each(function($row,$index){
//Do something
});

@param function $cb A function that take row as parameter

@return DataStore This datastore
Loop through each rows of data set