downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

IteratorAggregate> <Iterator::rewind
Last updated: Fri, 14 Aug 2009

view this page in

Iterator::valid

(PHP 5 >= 5.1.0)

Iterator::validVérifie si la position courante est valide

Description

abstract public boolean Iterator::valid ( void )

Cette méthode est appelée après Iterator::rewind et Iterator::next pour vérifier si la position courante est valide.

Liste de paramètres

Cette fonction ne contient aucun paramètre.

Valeurs de retour

La valeur retournée sera transtypée en booléen, puis, évaluée. Cette fonction retourne TRUE en cas de succès, FALSE en cas d'échec.



add a note add a note User Contributed Notes
Iterator::valid
seva dot lapsha at gmail dot com
02-Aug-2009 03:19
If <? Iterator::valid() ?> returns <? false ?>, the <? foreach() ?> loop will be terminated.

IteratorAggregate> <Iterator::rewind
Last updated: Fri, 14 Aug 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites