title: How to export data from mongodb without displaying headers?
body: <p>I'm trying to display stored data form the mongodb using the php? But it display's all the header file including data. How to ignore the header information?</p>
  
  <p>It shows like</p>
  
  <blockquote>
    <p>{ "_id" : ObjectId("550ee694c5c9f2729b066c23"),</p>
  </blockquote>
  
  <p>I want result as</p>
  
  <blockquote>
    <p>550ee694c5c9f2729b066c23</p>
  </blockquote>
  
  <p>my php code:</p>
  
  <pre><code>$db = new Mongo();
  $query = $db-&gt;selectDB('test');
  $collections = new MongoCollection($query,'demo');
  $coursor = $collections-&gt;find();
  foreach ($coursor as $doc)
  {print_r($doc);}
  </code></pre>