Reputation: 61
I have been searching google and stackoverflow for a tutorial on generating UUID using PHPcassa. I am a noob and I cant seem to figure this out. I am using the latest PHPcassa version, which is this URL http://thobbs.github.com/phpcassa/
can anyone give me a step by step example on how to generate one?
Thank you very much !!!!
Upvotes: 1
Views: 291
Reputation: 6932
There's a UUID class in the phpcassa library that you can use. For example:
use phpcassa\UUID;
...
$my_uuid = UUID::uuid1();
You may also want to look at these examples if you have a UUID comparator.
Upvotes: 1