PHP random unique identifier
In the construction of our booking system client can view their bookings online. At the moment the URL o开发者_如何学运维f their page is created as a sequential number. So /booking1
, /booking2
, /booking3
etc...
I'd rather have unique name a bit like the JSFiddle way of doing it. A series of letters and numbers.
Is that possible?
Would uniqid be good enough for what you need?
http://php.net/manual/en/function.uniqid.php
uniqid function seems to be what you are looking for.
you can use uniqid("bookingr", false);
精彩评论