25

生成唯一字母 ID 求解

 4 years ago
source link: https://www.v2ex.com/t/639822
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
PHP - @lg106 - 有一个需求是不用数字作为用户 ID,要用英文字母我现在有三种解决方案第一种:用户注册时候,生成一个随机英文字符串,去查用户表,如果重复再重新生成,直到唯一。第二种:先生成一张字

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK