Hello there,
That's called Globally Unique Identifiers, GUID for short.
A GUID is most commonly written in text as a sequence of hexadecimal digits separated into five groups, such as:
3F2504E0-4F89-11D3-9A0C-0305E82C3301
Use this code below:
function GUID()
{
if (function_exists('com_create_guid') === true)
{
return trim(com_create_guid(), '{}');
}
return sprintf('%04X%04X-%04X-%04X-%04X-%04X%04X%04X', mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(16384, 20479), mt_rand(32768, 49151), mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535));
}
That's your function to encode exactly in that format and create unique identifiers.
Award me and pay my milestone and i can adjust the code for you if you fail to do so.
Have a good day.