Skip to content

Instantly share code, notes, and snippets.

@igorshirinkin
Last active October 15, 2021 09:51
Show Gist options
  • Save igorshirinkin/1f18f3646f95c97e825dcf14d062a437 to your computer and use it in GitHub Desktop.
Save igorshirinkin/1f18f3646f95c97e825dcf14d062a437 to your computer and use it in GitHub Desktop.
Console throbber.php
$index = 0;
$inserted = 0;
foreach ($prod_rows as $prod_row) {
printf(
"\rInserting to Target DB... [%s] row %d",
"|/-\\"[$index % 4],
$index + 1
);
$index++;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment