Hi,
In contrast to the description, there is no s-prefix added to the Id (which is totally fine with me)
$string = nuID()
Creates a string from
s - Because it was created on the server.
1502690897383 - Date.now().
1012 - An incrementing number looping between 1000 and 9999
https://wiki.nubuilder.cloud/ ... p/PHP#nuID
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
nuID() - Wiki description
-
- nuBuilder Team
- Posts: 4307
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 448 times
- Contact:
Re: nuID() - Wiki description
Code: Select all
function nuID(){
$i = uniqid();
$s = md5($i);
while($i == uniqid()){}
return uniqid().$s[0].$s[1];
}