<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.mongodb-driver-cursorinterface.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'mongodb-driver-cursorinterface.toarray.php',
    1 => 'MongoDB\\Driver\\CursorInterface::toArray',
    2 => 'Renvoie un tableau contenant tous les r&eacute;sultats de ce curseur',
  ),
  'up' => 
  array (
    0 => 'class.mongodb-driver-cursorinterface.php',
    1 => 'MongoDB\\Driver\\CursorInterface',
  ),
  'prev' => 
  array (
    0 => 'mongodb-driver-cursorinterface.settypemap.php',
    1 => 'MongoDB\\Driver\\CursorInterface::setTypeMap',
  ),
  'next' => 
  array (
    0 => 'class.mongodb-driver-server.php',
    1 => 'MongoDB\\Driver\\Server',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/mongodb/mongodb/driver/cursorinterface/toarray.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="mongodb-driver-cursorinterface.toarray" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">MongoDB\Driver\CursorInterface::toArray</h1>
  <p class="verinfo">(mongodb &gt;=1.6.0)</p><p class="refpurpose"><span class="refname">MongoDB\Driver\CursorInterface::toArray</span> &mdash; <span class="dc-title">Renvoie un tableau contenant tous les résultats de ce curseur</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-mongodb-driver-cursorinterface.toarray-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">abstract</span> <span class="modifier">public</span> <span class="methodname"><strong>MongoDB\Driver\CursorInterface::toArray</strong></span>(): <span class="type"><a href="language.types.array.php" class="type array">array</a></span></div>

  <p class="para rdfs-comment">
   Itère le curseur et renvoie ses résultats dans un tableau.
   <span class="function"><a href="mongodb-driver-cursorinterface.settypemap.php" class="function">MongoDB\Driver\CursorInterface::setTypeMap()</a></span> peut être utilisé
   pour contrôler comment les documents sont désérialisés en valeurs PHP.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-mongodb-driver-cursorinterface.toarray-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <p class="para">Cette fonction ne contient aucun paramètre.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-mongodb-driver-cursorinterface.toarray-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="para">
   Renvoie un <span class="type"><a href="language.types.array.php" class="type array">array</a></span> contenant tous les résultats de ce curseur.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-mongodb-driver-cursorinterface.toarray-errors">
  <h3 class="title">Erreurs / Exceptions</h3>
  <ul class="simplelist">
   <li>Lance une exception <span class="classname"><strong class="classname">MongoDB\Driver\InvalidArgumentException</strong></span> lors d'une erreur survenue pendant l'analyse d'un argument.</li>
  </ul>
 </div>


 <div class="refsect1 seealso" id="refsect1-mongodb-driver-cursorinterface.toarray-seealso">
  <h3 class="title">Voir aussi</h3>
  <ul class="simplelist">
   <li><span class="methodname"><a href="mongodb-driver-cursor.toarray.php" class="methodname" rel="rdfs-seeAlso">MongoDB\Driver\Cursor::toArray()</a> - Retourne un tableau contenant tous les r&eacute;sultats pour ce curseur</span></li>
   <li><span class="function"><a href="mongodb-driver-cursorinterface.settypemap.php" class="function" rel="rdfs-seeAlso">MongoDB\Driver\CursorInterface::setTypeMap()</a> - D&eacute;finit une carte de type &agrave; utiliser pour la d&eacute;s&eacute;rialisation BSON</span></li>
  </ul>
 </div>


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