iterator_count
laravel/framework
Supported Versions: PHP 5 >= 5.1.0, PHP 7, PHP 8
Count the elements in an iterator
iterator_count
(
Traversable $iterator
):
int
return
count
(
$this
->
source
);
}
return
iterator_count
(
$this
->
getIterator
());
}
src/Illuminate/Collections/LazyCollection.php