(PECL mongo >=0.9.0)
Queries this collection, returning a single element
public array MongoCollection::findOne ([ array $query = array() [, array $fields = array() [, array $options = array() ]]] )
As opposed to MongoCollection::find(), this method will return only the first result from the result set, and not a MongoCursor that can be iterated over.
Parameters:
query