array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'mongodb-driver-cursor.key.php', 1 => 'MongoDB\\Driver\\Cursor::key', 2 => 'Returns the current result\'s index within the cursor', ), 'up' => array ( 0 => 'class.mongodb-driver-cursor.php', 1 => 'MongoDB\\Driver\\Cursor', ), 'prev' => array ( 0 => 'mongodb-driver-cursor.isdead.php', 1 => 'MongoDB\\Driver\\Cursor::isDead', ), 'next' => array ( 0 => 'mongodb-driver-cursor.next.php', 1 => 'MongoDB\\Driver\\Cursor::next', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/mongodb/mongodb/driver/cursor/key.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

MongoDB\Driver\Cursor::key

(mongodb >=1.9.0)

MongoDB\Driver\Cursor::keyReturns the current result's index within the cursor

説明

public MongoDB\Driver\Cursor::key(): int

パラメータ

この関数にはパラメータはありません。

戻り値

The current result's numeric index within the cursor.

参考