title: php How to I encode/decode ID USER (int) Alpha Numeric format in 9 digit number
body: <p>I want it to be <strong>alpha numeric</strong> and where I can decode it and encode it.
  Example:</p>
  
  <pre><code>$id = 12452;
  $encoded = encode_id( $id ); // return -&gt; R51RT74UJ
  $decoded = decode_id( $encoded ); // return -&gt; 12452
  function encode_id( $id, $length = 9) {
      return $id; // With a maximum of 9 lengths
  }
  
  function decode_id( $id, $length = 9) {
      return $id; // With a maximum of 9 lengths
  }
  </code></pre>