Today I wanted to create some progress indicator PHP command line, after minute googling I found http://forums.devshed.com/php-development-5/php-cli-progress-indicator-151590.html After slight change: function progressBar($current, $total, $label) { $percent = round($current / $total * 100); if ($current == 0) { if ($label == “”) echo “Progress: \n”; else if ($label
Read more →
Recent comments