开发者

PHP random unique identifier

开发者 https://www.devze.com 2023-02-20 21:08 出处:网络
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, /booki

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);

0

精彩评论

暂无评论...
验证码 换一张
取 消