Returns the specified rows from an array