I am writing a PHP script which will be run with the shell command in myfile.php
.
I want to show a progress bar which changes in time like this:
[------]
[*-----]
[****--]
i don't know if this is the best practice to do such a thing, but I want do it using a simple echo
, and the position of the progress bar in the shell unchanged.
After it's done, I want to delete the whole loading thing.
Generally, how can I change something I have already echo
'ed?