note 127636 added to function.uniqid
| From: | harry at orange dot fr | Date: | Thu, 15 Sep 2022 18:44:32 +0000 |
| Subject: | note 127636 added to function.uniqid | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-219580@lists.php.net to get a copy of this message | ||
By uisng str_shuffle in association with uniqid : is-it enough?
example :
for($i=0;$i<20;$i++)
{
$uid = str_shuffle(uniqid())."-".str_shuffle(uniqid());
echo "$uid<br>";
}
output
ac327620367a5-02366a4b37752
0a36225a776b3-da5072726b633
603352b7a26f7-272a56c036732
673546a0c7322-7067c2527363a
23965ac063772-2a60b7753263c
277566a332ec0-a32356276d070
2a76373620d52-25675da073623
76d20a7523736-35729637a20d6
a37c6637d0252-d35262e7637a0
67576e2323a00-73026327ae265
36677a5023e25-357ea70662723
a6723026ea573-7606527ce3a32
5276e73e0362a-232f6a0173756
30f33725a6627-672f6352573a0
3f876506232a7-a2f756a672033
67c3072235f6a-737f20625e6a3
0a33271277065-2007a77236533
50a5272773603-77a3720625370
272570a760a33-072a63523c770
f60a332727750-7a76052211373
Thanks for you comment
----
Server IP: 45.112.84.4
Probable Submitter: 185.85.3.173 (proxied: 109.190.3.49)
----
Manual Page -- https://php.net/manual/en/function.uniqid.php
Edit -- https://main.php.net/note/edit/127636
Del: integrated -- https://main.php.net/note/delete/127636/integrated
Del: useless -- https://main.php.net/note/delete/127636/useless
Del: bad code -- https://main.php.net/note/delete/127636/bad+code
Del: spam -- https://main.php.net/note/delete/127636/spam
Del: non-english -- https://main.php.net/note/delete/127636/non-english
Del: in docs -- https://main.php.net/note/delete/127636/in+docs
Del: other reasons-- https://main.php.net/note/delete/127636
Reject -- https://main.php.net/note/reject/127636
Search -- https://main.php.net/manage/user-notes.php