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!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
nuID() - Wiki description
-
- nuBuilder Team
- Posts: 4562
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 528 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];
}