Hi all,
Can any one help me out on this . I want to generate a 10 digit unique alphanumeric code (47b9a447df) to give as an id.
Thanks in advance for the help....🙂
$randomHex10 = sprintf('%02x%08x', rand(0, 0xFF), time());
Thanks very much for the reply
PS: if 13 characters is acceptable, you could just use [man]uniqid/man.