MongoGridFS::find
MongoGridFS::remove
MongoGridFS
PHP Manual

# MongoGridFS::findOne

(PECL mongo >=0.9.0)

MongoGridFS::findOne — Returns a single file matching the criteria

### Opis

public MongoGridFSFile MongoGridFS::findOne ([ mixed `$query` = array() ] )

### Parametry

`query`

  The filename or criteria for which to search.

### Zwracane wartości

Returns a file or `NULL`.

MongoGridFS::find
MongoGridFS::remove
MongoGridFS
PHP Manual