Hướng dẫn php random string unique
Ngày đăng:
02/09/2022
Trả lời:
0
Lượt xem:
193
How to make a random string unique to the string in the column below?
asked Mar 6 at 11:58
6
answered Mar 6 at 12:07
2 You can use openssl_random_pseudo_bytes() or random_bytes() PHP fonction to generate random strings. You can also rely on MySQL to generate uniq IDs :
answered Mar 6 at 14:26
AlaindeseineAlaindeseine 1,5721 gold badge6 silver badges17 bronze badges Not the answer you're looking for? Browse other questions tagged php laravel random or ask your own question. |