PHP code example of gacek85 / collection-iterator
1. Go to this page and download the library: Download gacek85/collection-iterator library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
gacek85 / collection-iterator example snippets
php
$provider = new \My\Provider(); // An implementation of Gacek85\Collection\IterableDataProvider
$iterator = new \Gacek85\Collection\CollectionIterator($provider);
foreach ($iterator as $k => $item) {
// Do your stuff here with the item
}