Skip to content

Instantly share code, notes, and snippets.

View CaduEspindola's full-sized avatar

Cadu Espindola CaduEspindola

  • Brazil
View GitHub Profile
@CaduEspindola
CaduEspindola / progress-command-line.php
Last active August 21, 2018 16:29
Progress indicator (percent) in command-line PHP script
<?php
/**
* Progress indicator (percent) in command-line PHP script (cmd)
* It only works in command line!
* Run: php ./progress-command-line.php
* @author Cadu Espindola <[email protected]>
*/
$data = array('foo', 'bar', 'baz', 'foo', 'bar', 'baz');