PHP code example of fyre / iterator

1. Go to this page and download the library: Download fyre/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/ */

    

fyre / iterator example snippets


use Fyre\Utility\Iterator;

Iterator::add($name, $callback);

$tests = Iterator::all();

Iterator::clear();

$testCount = Iterator::count();

$test = Iterator::get($name);

$hasTest = Iterator::has($name);

$removed = Iterator::remove($name);

$results = Iterator::run($iterations);