iterator_count
statamic/cms
Supported Versions: PHP 5 >= 5.1.0, PHP 7, PHP 8
Count the elements in an iterator
<?php iterator_count
(
Traversable
|array
$iterator
):
int