PHP
PHP / MySql

Recherche
 
ManuelPHP.com

ArrayIterator::key
<<<
ArrayIterator::next ArrayIterator::rewind
>>>

8.123 Fonctions Standard PHP Library (SPL)
8 Référence des fonctions
 Manuel PHP

Introduction
Installation
Constantes pré-définies
ArrayIterator::current
ArrayIterator::key
->ArrayIterator::next
ArrayIterator::rewind
ArrayIterator::seek
ArrayIterator::valid
ArrayObject::append
ArrayObject::__construct
ArrayObject::count
ArrayObject::getIterator
ArrayObject::offsetExists
ArrayObject::offsetGet
ArrayObject::offsetSet
ArrayObject::offsetUnset
CachingIterator::hasNext
CachingIterator::next
CachingIterator::rewind
CachingIterator::__toString
CachingIterator::valid
CachingRecursiveIterator::getChildren
CachingRecursiveIterator::hasChildren
class_implements
class_parents
DirectoryIterator::__construct
DirectoryIterator::current
DirectoryIterator::getATime
DirectoryIterator::getChildren
DirectoryIterator::getCTime
DirectoryIterator::getFilename
DirectoryIterator::getGroup
DirectoryIterator::getInode
DirectoryIterator::getMTime
DirectoryIterator::getOwner
DirectoryIterator::getPath
DirectoryIterator::getPathname
DirectoryIterator::getPerms
DirectoryIterator::getSize
DirectoryIterator::getType
DirectoryIterator::isDir
DirectoryIterator::isDot
DirectoryIterator::isExecutable
DirectoryIterator::isFile
DirectoryIterator::isLink
DirectoryIterator::isReadable
DirectoryIterator::isWritable
DirectoryIterator::key
DirectoryIterator::next
DirectoryIterator::rewind
DirectoryIterator::valid
FilterIterator::current
FilterIterator::getInnerIterator
FilterIterator::key
FilterIterator::next
FilterIterator::rewind
FilterIterator::valid
iterator_count
iterator_to_array
LimitIterator::getPosition
LimitIterator::next
LimitIterator::rewind
LimitIterator::seek
LimitIterator::valid
ParentIterator::getChildren
ParentIterator::hasChildren
ParentIterator::next
ParentIterator::rewind
RecursiveDirectoryIterator::getChildren
RecursiveDirectoryIterator::hasChildren
RecursiveDirectoryIterator::key
RecursiveDirectoryIterator::next
RecursiveDirectoryIterator::rewind
RecursiveIteratorIterator::current
RecursiveIteratorIterator::getDepth
RecursiveIteratorIterator::getSubIterator
RecursiveIteratorIterator::key
RecursiveIteratorIterator::next
RecursiveIteratorIterator::rewind
RecursiveIteratorIterator::valid
SimpleXMLIterator::current
SimpleXMLIterator::getChildren
SimpleXMLIterator::hasChildren
SimpleXMLIterator::key
SimpleXMLIterator::next
SimpleXMLIterator::rewind
SimpleXMLIterator::valid
spl_classes

8.123.6 ArrayIterator::next() Se déplace vers la prochaine entrée

[ Exemples avec arrayiterator_next ]   CVS uniquement

void  ArrayIterator::next ( void )

ArrayIterator::next déplace l'itérateur vers la prochaine entrée.

Exemple avec ArrayIterator::next

<?php
$arrayobject
= new ArrayObject();

$arrayobject[] = 'zéro';
$arrayobject[] = 'un';

$iterator = $arrayobject->getIterator();

while(
$iterator->valid()) {
    echo
$iterator->key() . ' => ' . $iterator->current() . "\n";

    
$iterator->next();
}
?>

<< ArrayIterator::next >>
ArrayIterator::key Fonctions Standard PHP Library (SPL) ArrayIterator::rewind





Google

Services webmasters

Les manuels
 

ManuelPHP.com © 2003-2012 Tigersun - Crédits
Webmaster Site Internet - Télécharger des Logiciels - Programme TV - Entraide Informatique - Agence de Communication
2018-09-21