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, 30 Oct 2009

view this page in

Iterator::valid

(PHP 5 >= 5.1.0)

Iterator::validPrüft, ob die aktuelle Position zulässig ist

Beschreibung

abstract public boolean Iterator::valid ( void )

Diese Methode wird nach Iterator::rewind und Iterator::next aufgerufen, um zu prüfen, ob die aktuelle Position zulässig ist.

Parameter-Liste

Diese Funktion hat keine Parameter.

Rückgabewerte

Der Rückgabewert wird in den Typ boolean gecastet und dann evaluiert. Gibt bei Erfolg TRUE zurück, im Fehlerfall FALSE.



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, 30 Oct 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites