<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Returns the current result's filename</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="mongogridfscursor.getnext.html">MongoGridFSCursor::getNext</a></div> <div class="next" style="text-align: right; float: right;"><a href="mongo.miscellaneous.html">Miscellaneous</a></div> <div class="up"><a href="class.mongogridfscursor.html">MongoGridFSCursor</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="mongogridfscursor.key" class="refentry"> <div class="refnamediv"> <h1 class="refname">MongoGridFSCursor::key</h1> <p class="verinfo">(PECL mongo >=0.9.0)</p><p class="refpurpose"><span class="refname">MongoGridFSCursor::key</span> — <span class="dc-title">Returns the current result's filename</span></p> </div> <div class="refsect1 description" id="refsect1-mongogridfscursor.key-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">string</span> <span class="methodname"><strong>MongoGridFSCursor::key</strong></span> ( <span class="methodparam">void</span> )</div> </div> <div class="refsect1 parameters" id="refsect1-mongogridfscursor.key-parameters"> <h3 class="title">Parameters</h3> <p class="para">This function has no parameters.</p> </div> <div class="refsect1 returnvalues" id="refsect1-mongogridfscursor.key-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> The current result's _id as a string. </p> </div> <div class="refsect1 changelog" id="refsect1-mongogridfscursor.key-changelog"> <h3 class="title">Changelog</h3> <p class="para"> <table class="doctable informaltable"> <thead> <tr> <th>Version</th> <th>Description</th> </tr> </thead> <tbody class="tbody"> <tr> <td>1.3.0</td> <td> The document's <em>_id</em> is returned as a string value, since the key should be unique. Pre-1.3.0, <em>filename</em> was returned. </td> </tr> </tbody> </table> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="mongogridfscursor.getnext.html">MongoGridFSCursor::getNext</a></div> <div class="next" style="text-align: right; float: right;"><a href="mongo.miscellaneous.html">Miscellaneous</a></div> <div class="up"><a href="class.mongogridfscursor.html">MongoGridFSCursor</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>