MongoGridFSCursor::key

(PECL mongo >=0.9.0)

MongoGridFSCursor::keyReturns the current result's filename

说明

public MongoGridFSCursor::key ( void ) : string

参数

此函数没有参数。

返回值

The current result's _id as a string.

更新日志

版本 说明
1.3.0 The document's _id is returned as a string value, since the key should be unique. Pre-1.3.0, filename was returned.

相关文章
php eventbufferevent returns the name of the protocol used for current ssl connectionphp evloop returns the current event loop time php apd 函数 returns the current call stack as an arrayphp ibm db2 函数 returns the width of the current value of the indicated column in a result setphp ibm db2 函数 returns the number of fields contained in a result setphp ibm db2 函数 returns a result set listing the tables and associated privileges in a databasephp maxdb 函数 returns the lengths of the columns of the current row in the result setphp maxdb 函数 returns the current row of a result set as an objectphp maxdb 函数 get current field offset of a result pointerphp mssql 函数 returns an associative array of the current row in the resultphp mysqlnd qc 函数 returns information on the current handler the number of cache entries and cache entries if availablephp rpm reader 函数 returns a string representing the current version of the rpmreader extensionphp gmagick returns the filename of a particular image in a sequencephp mongocommandcursor returns the current result s index within the result setphp mongocursor returns the current result s id or its index within the result setphp mongogridfscursor returns the current filephp mongogridfscursor returns the current result s filenamephp mysqli result returns the current row of a result set as an objectphp mysqli result returns the lengths of the columns of the current row in the result setphp weakmap returns the current value under iteration
关注编程学问公众号