SplObjectStorage::current Retourne l'objet courant &reftitle.description; public objectSplObjectStorage::current Retourne l'objet courant. &reftitle.parameters; &no.function.parameters; &reftitle.returnvalues; L'&object; à la position courante de l'itérateur. &reftitle.changelog; &Version; &Description; 8.1.0 SplObjectStorage::current lance désormais une exception Error si la position actuelle est invalide. Auparavant, &false; était retourné. &reftitle.examples; Exemple avec <function>SplObjectStorage::current</function> attach($o1, "d1"); $s->attach($o2, "d2"); $s->rewind(); while($s->valid()) { $index = $s->key(); $object = $s->current(); // similar to current($s) $data = $s->getInfo(); var_dump($object); var_dump($data); $s->next(); } ?> ]]> &example.outputs.similar; &reftitle.seealso; SplObjectStorage::rewind SplObjectStorage::key SplObjectStorage::next SplObjectStorage::valid SplObjectStorage::getInfo