I have a mysql query that returns a large number of results. Is there a PHP/MySQL function that can return the contents of every nth row (where n is a $variable)?

Please provide simple examples if possible.

Thanks!