|
iterator_countCount the elements in an iterator Beschreibung
int iterator_count
( Traversable
$iterator
)
Count the elements in an iterator.
iterator_count is not guaranteed to retain the current
position of the Parameter-Liste
Rückgabewerte
The number of elements in Beispiele
Beispiel #1 iterator_count example
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe: int(4) Beispiel #2 iterator_count modifies position
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe: string(3) "one" int(3) NULL Beispiel #3 iterator_count in foreach loops
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe: 0: one (3) |