Before starting iteration, several methods may be called to configure the query.

<?php
$m 
= new MongoClient();
$c $m->demo->cities;

$cursor $c->find( [ 'country_code' => 'RU' ] )
            ->
sort( [ 'name' => ] )
            ->
limit)->skip25 );

foreach ( 
$cursor as $r ) {
    
var_dump$r['name'] );
}
?>
Output