31 '%04x%04x-%04x-%04x-%04x-%04x%04x%04x',
34 mt_rand(0, 0xffff), mt_rand(0, 0xffff),
41 mt_rand(0, 0x0fff) | 0x4000,
46 mt_rand(0, 0x3fff) | 0x8000,
49 mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff)
63 '/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/i',
static getUUID()
Returns a pseudo-random v4 UUID.
static validateUUID($uuid)
Checks if a string is a valid UUID.