开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜