title: Alphanumeric Increment a string in PHP (To a certain length)
body: <p>I need to generate a sequence (or function to get a "next id") with an alphanumeric incrementor.</p>
  
  <p>The length of the string must be defineable, and the Characters must be 0-9, A-Z.</p>
  
  <p>So for example, with a length of 3:</p>
  
  <pre><code>000
  001
  002
  ~
  009
  00A
  00B
  ~
  00Z
  010
  011
  etc..
  </code></pre>
  
  <p>So I imagine the function might be used like this:</p>
  
  <pre><code>$code = '009'
  $code = getNextAlphaNumeric($code);
  ehco $code; // '00A'
  </code></pre>
  
  <p>I'm working on a solution to this myself, but curious if anyone has tackled this before and come up with a smarter / more robust solution than my own.</p>
  
  <p>Does anyone have a nice solution to this problem?</p>