Generate uuid,php generated UUID in PHP
First, what is the UUID
The UUID is simply a string of globally unique (16 binary) numbers.
The full spell of the UUID is "universally unique Identifier", which can be translated as "Universal Unique
Php generates a uuid format string instance program. Uuid is a string in what format I think many of my friends don't know, but you have come to estimate what uuid is. let's take a look at how to generate a uuid string. UUID refers to the uuid in
What is the format of the UUID string I think a lot of friends do not know, but you have already come to know what is the UUID, let's look at how to generate a UUID string.
A UUID is a number generated on a machine that guarantees that all machines
Generate uuid udf sharing in PHP. UUID generation in PHP user-defined function sharing UUID full name is Universallyuniqueidentifier, it is an identifier, can be generated by any computer, A central database is not required to generate UUID UDFs in
The only database that I am still familiar with is mysql. Probably mysql users, more than 9% will use autoincrement ID as the primary key. This is understandable, because the auto-increment ID of MySQL is very efficient and convenient to use. So
UUID generated by php. UUID indicates that it is a universal Unique Identifier. it is a standard for Software construction and is also developed by the Open Software Foundation (OSF) organizations are part of the application in the Distributed
How to generate UUID in PHP, the method of survival uuid.
The code is as follows:
function guid () {if (function_exists (' Com_create_guid ')) {return com_create_guid ();} Else{mt_srand (Double) microtime () *10000)//optional for PHP 4.2.0 and up.
The UUID full name is the universally unique identifier, which is an identifier that can be generated using any computer, without requiring a central database for management, which guarantees that there is little chance of duplication. The range of
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.