MongoGridFS::get

(PECL mongo >=1.0.8)

MongoGridFS::getRetrieve a file from the database

说明

public MongoGridFS::get ( mixed $id ) : MongoGridFSFile

参数

id

_id of the file to find.

返回值

Returns the file, if found, or null.