PHP Time Based UUID Function (GUID)
In my desire to find the “right” UUID function to use in my application, I grew to like the MySQL UUID() results produced because they are partially time based. But I didn’t like that I have to make a database call every time I want a new UUID. I didn’t find any similar functionality in PHP or from user based PHP functions, so here’s my efforts.
It clocks in at 100,000 results in about 1.36 seconds on my 2.8Ghz Intel iMac.
We produce results looking like this:
