So I\'ve been doing some digging around and I\'ve been trying to piece together a function that generates a valid v4 UUID in PHP. This is the closest I\'ve been able to come
If you use CakePHP you can use their method CakeText::uuid(); from the CakeText class to generate a RFC4122 uuid.
CakePHP
CakeText::uuid();