title: Update Command-line Output, i.e. for Progress
body: <p>I'd like to be able to show a progress meter in a simple PHP script on the command line. Instead of seeing </p>
  
  <pre><code>Progress: 0%
  Progress: 1%
  etc...
  </code></pre>
  
  <p>I'd like just the number to change, and replace the previous number, much like git clone does for example <code>Resolving deltas: 100% (8522/8522), done.</code>. </p>
  
  <p>While searching for this I found the <a href="https://stackoverflow.com/questions/5009258/update-command-line-output">same question answered in Perl</a>, which is perfect, but I couldn't find it in PHP. Is it possible? If not, I'll resort to C.</p>
  
  <p>Thanks</p>
  
  <p><strong>Update:</strong> If anyone's interested in the C++ version, <a href="https://stackoverflow.com/questions/60221/how-to-animate-the-command-line">it's here</a>.</p>