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 underlying output buffer associated with current buffer eventphp ibm db2 函数 returns a result set listing the columns and associated metadata for a tablephp ibm db2 函数 returns the width of the current value of the indicated column in a result setphp 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 mssql 函数 returns an associative array of the current row in the resultphp oci8 函数 returns the next child statement resource from a parent statement resource that has oracle database 12c implicit result setsphp imagick returns a reference to the current imagick objectphp imagickpixeliterator returns the current row of imagickpixel objectsphp 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 mongocursor advances the cursor to the next result and returns that resultphp 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 mysqlnduhconnection returns the thread id for the current connectionphp splobjectstorage returns the data associated with the current iterator entryphp sqlite3result returns the type of the nth columnphp tidynode returns the parent node of the current node
关注编程学问公众号