<?php
$m = new MongoClient();
// First "found" item:
$record = $m->demo->talks->findOne();
// Search on the _id field being 'derickr'
$record = $m->demo->talks->findOne( [ '_id' => 'derickr' ] );
// Search on the 'talks' embedded document's 'title' field
$record = $m->demo->talks->findOne(
[ 'talks.title' => 'Xdebug' ]
);
?>