Php/docs/mongogridfs.get

来自菜鸟教程
跳转至:导航、​搜索

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.