title: Sort Number: Gold, Silver, Bronze
body: <p>my problem:
  I want a working Number sort, thats what I got:</p>
  
  <pre><code>$mynumber=7915503;
  echo substr($mynumber, 0, 3)." Gold ". substr($mynumber, 3, 2)." Silver " . substr($mynumber, 5, 2)." Bronze ";
  </code></pre>
  
  <p>With that number, it works.
  Output: 791 Gold 55 Silver 03 Bronze</p>
  
  <p>But if I change the Number like 9, it will Output: 9 Gold Silver Bronze
  I want put the Number 9 in and Output: 0 Gold 0 Silver 9 Bronze</p>