PHP Classes

File: examples/example.php

Recommend this page to a friend!
  Classes of Niko Peikrishvili   PHP Console Progress Bar   examples/example.php   Download  
File: examples/example.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Console Progress Bar
Display bars for in-progress console tasks
Author: By
Last change:
Date: 1 year ago
Size: 346 bytes
 

Contents

Class file image Download
<?php

use Progress\Progress;

require
__DIR__.'/../vendor/autoload.php';


foreach (
Progress::wrap(range(1, 4)) as $number) {
    foreach (
Progress::wrap(range(1, 5),'Second') as $secondNumber) {
        foreach (
Progress::wrap(range(1, 6), 'Third') as $thirdNumber) {
            {
               
usleep(20000);
            }
        }
    }
}