note 45108 added to function.uniqid
| From: | matt at kynx dot org | Date: | Thu, 26 Aug 2004 13:10:19 +0000 |
| Subject: | note 45108 added to function.uniqid | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-75329@lists.php.net to get a copy of this message | ||
If you're looking for functions to generate 128 bit uuid's, try the uuid PECL extension at
http://pecl.php.net/package/uuid.
It uses libuuid from ext2fstools, so I think it's only available on *nix, but provides the
following handy functions:
string uuid_create([int type])
int uuid_compare(string uuid1, string uuid2)
bool uuid_is_null(string uuid)
bool uuid_is_valid(string uuid)
int uuid_variant(string uuid)
int uuid_type(string uuid)
int uuid_time(string uuid)
string uuid_mac(string uuid)
----
Manual Page -- http://www.php.net/manual/en/function.uniqid.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+45108
Delete -- http://master.php.net/manage/user-notes.php?action=delete+45108&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+45108&report=yes
Search -- http://master.php.net/manage/user-notes.php