Skip to content

Instantly share code, notes, and snippets.

@harikt
Created September 30, 2014 06:23
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save harikt/a59319ce0784c1095741 to your computer and use it in GitHub Desktop.
<?php
$max = 100;
for ($current = 1; $current <= $max; $current++) {
$progress = "\r[%-{$max}s](%s/%s)";
echo sprintf($progress, str_repeat("=", $current). '>', $current, $max);
// replace echo with stdio of Aura, so we can make awesome colors also ;)
usleep(6000);
}
@harikt
Copy link
Author

harikt commented Sep 30, 2014

@harikt
Copy link
Author

harikt commented Sep 30, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment