<slide>
<title>Cursor methods</title>

<blurb>Before starting iteration, several methods may be called to configure the query.</blurb>
<example result="1"><![CDATA[<?php
$m = new MongoClient();
$c = $m->demo->cities;

$cursor = $c->find( [ 'country_code' => 'RU' ] )
            ->sort( [ 'name' => 1 ] )
            ->limit( 5 )->skip( 25 );

foreach ( $cursor as $r ) {
    var_dump( $r['name'] );
}
?>]]></example>
</slide>
