From 4b8bbc5769151e7d663950ee146cc3c4dc7dcc88 Mon Sep 17 00:00:00 2001 From: George Peter Banyard Date: Fri, 4 Nov 2022 12:30:46 +0000 Subject: [PATCH 1/2] iterator_to_array() and iterator_count() now accepts arrays --- reference/spl/functions/iterator-count.xml | 27 +++++++++++++++++-- reference/spl/functions/iterator-to-array.xml | 26 +++++++++++++++++- 2 files changed, 50 insertions(+), 3 deletions(-) diff --git a/reference/spl/functions/iterator-count.xml b/reference/spl/functions/iterator-count.xml index d2b117416a42..6ee213eb9eed 100644 --- a/reference/spl/functions/iterator-count.xml +++ b/reference/spl/functions/iterator-count.xml @@ -10,7 +10,7 @@ &reftitle.description; intiterator_count - Traversableiterator + Traversablearrayiterator Count the elements in an iterator. @@ -42,6 +42,30 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.2.0 + + The type of iterator has been widened from + Traversable to + Traversablearray + + + + + + + &reftitle.examples; @@ -105,7 +129,6 @@ foreach ($iterator as $key => $value) { -