<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.mongodb-bson-iterator.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'mongodb-bson-iterator.current.php',
    1 => 'MongoDB\\BSON\\Iterator::current',
    2 => 'Returns the current element',
  ),
  'up' => 
  array (
    0 => 'class.mongodb-bson-iterator.php',
    1 => 'MongoDB\\BSON\\Iterator',
  ),
  'prev' => 
  array (
    0 => 'mongodb-bson-iterator.construct.php',
    1 => 'MongoDB\\BSON\\Iterator::__construct',
  ),
  'next' => 
  array (
    0 => 'mongodb-bson-iterator.key.php',
    1 => 'MongoDB\\BSON\\Iterator::key',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/mongodb/bson/iterator/current.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="mongodb-bson-iterator.current" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">MongoDB\BSON\Iterator::current</h1>
  <p class="verinfo">(mongodb &gt;=1.16.0)</p><p class="refpurpose"><span class="refname">MongoDB\BSON\Iterator::current</span> &mdash; <span class="dc-title">Returns the current element</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-mongodb-bson-iterator.current-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>MongoDB\BSON\Iterator::current</strong></span>(): <span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span></div>

 </div>


 <div class="refsect1 parameters" id="refsect1-mongodb-bson-iterator.current-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">This function has no parameters.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-mongodb-bson-iterator.current-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns the value of the current element.
  </p>
  <blockquote class="note"><p><strong class="note">Note</strong>: 
   <span class="simpara">
    When encountering a value encoded as 64-bit integer in the BSON structure,
    the return value of this method will be a
    <span class="classname"><a href="class.mongodb-bson-int64.php" class="classname">MongoDB\BSON\Int64</a></span> instance.
   </span>
  </p></blockquote>
 </div>


 <div class="refsect1 errors" id="refsect1-mongodb-bson-iterator.current-errors">
  <h3 class="title">Errors/Exceptions</h3>
  <ul class="simplelist">
   <li>Throws <span class="classname"><a href="class.mongodb-driver-exception-invalidargumentexception.php" class="classname">MongoDB\Driver\Exception\InvalidArgumentException</a></span> on argument parsing errors.</li>
   <li>Throws <span class="classname"><a href="class.mongodb-driver-exception-logicexception.php" class="classname">MongoDB\Driver\Exception\LogicException</a></span> if the iterator is not valid.</li>
  </ul>
 </div>


 <div class="refsect1 seealso" id="refsect1-mongodb-bson-iterator.current-seealso">
  <h3 class="title">See Also</h3>
  <ul class="simplelist">
   <li><span class="methodname"><a href="iterator.current.php" class="methodname" rel="rdfs-seeAlso">Iterator::current()</a> - Return the current element</span></li>
  </ul>
 </div>

</div><?php manual_footer($setup); ?>