PHP encode methods
<p>Is it possible to encode user's ID# to text value?</p>

<p>For example if the user ID# is '50624' is it possible to convert it to 7 characters text value, something like 'DEGXCVG'?</p>

<p>If I use MD5 for this function I get 16-byte hash value.
The result value should not be longer than 7 or 8  characters.</p>

<p>Edit:
I want that each user has a different text code obtained from the id number.</p>
