FastNetMon

Sunday 12 June 2016

How to generate uuid in PHP?

I recommend to install uuid pecl extenstion with command:
pecl install uuid

And use it this way:
php -r 'echo uuid_create(), "\n";'b30c758e-78b3-4b3f-9781-704a87f04316

No comments :

Post a Comment

Note: only a member of this blog may post a comment.