Generate MD5 like UIDs with time sorted capabilities

Published 4 days ago about php, uid, ...

This one-liner allows you to generate md5 32 chars like UIDs which can be sorted by timestamp.

sprintf("%sr%s", number_format(microtime(true), 6, 'a', ''), uniqid());

It’s usefull if you use those to generate logs, debug hash, etc. output stuff like that

// 1413472768a539994r543fe20083d97
// 1413472768a540112r543fe20083de2
// 1413472768a540563r543fe20083faa
// 1413472768a540782r543fe20084092
// 1413472768a540832r543fe2008418b
// 1413472768a541473r543fe20084342
// 1413472768a541599r543fe200843c3
// 1413472768a541648r543fe200844a3
// 1413472768a541949r543fe20084522
// 1413472768a542035r543fe2008457a
// 1413472768a542099r543fe200845da
// 1413472768a542185r543fe200846b5
// 1413472768a542479r543fe20084733
// 1413472768a542529r543fe2008482a