title: MongoDb Random Document in PHP
body: <p>How to fetch Random Document from Mongodb with PHP
  here my Query Code</p>
  <pre><code>        $options=['limit' =&gt; 5];  
          $filter = ['type'=&gt;'questions', 'chapter'=&gt;'exam'];
          $books = $collection-&gt;find($filter, $options);
          foreach($books as $book) { }
  </code></pre>