convert (nearly) any value into an id-string
convert any value into an id-string
Copy this code and paste it in your HTML
function hash($input)
{
//Create unsigned crc
//Build a string representing the crc32
$result="";
while ($input > 0)
{
//Use only a-z
$result.=chr( ($input % 26) + 97);
//Decrease value
$input=$input >> 2;
}
//Done
return($result);
}
Report this snippet