Hi,
I need to create a function to shorten a numerical ID to a string of letters
E.G.
echo encode_num('1'); //Outputs a
echo encode_num('3'); //Outputs c
echo encode_num('26'); //Outputs z
echo encode_num('27'); //Outputs A
echo encode_num('52'); //Outputs Z
echo encode_num('53'); //Outputs aa
echo encode_num('54'); //Outputs ab
etc.
But I also need to be able to decode them again like
echo decode_num('a'); //Outputs 1
Is this possible to do?
Thanx,
Sam Rudge