1. Go to this page and download the library: Download halfpastfouram/collection 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/ */
$iterator = $collection->getIterator();
// Jump forward to next position
$iterator->next();
var_dump( $iterator->current() );
// Go back one position
$iterator->previous();
var_dump( $iterator->getKey(), $iterator->current() );
// Receive the list of keys in the dataset.
var_dump( $iterator->calculateKeyMap() );
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.