如何最简单的获得一个随机字符串(PHP)? (转载)# Programming - 葵花宝典
c*k
1 楼
【 以下文字转载自 BuildingWeb 讨论区 】
发信人: chick (Por Los Momentos Dif Ciles), 信区: BuildingWeb
标 题: 如何最简单的获得一个随机字符串(PHP)?
发信站: BBS 未名空间站 (Mon Dec 3 00:08:08 2007)
How to generate a random string in PHP?
Can I do this? Or does it look stupid?
$a = rand();
$b = crypt($a);
发信人: chick (Por Los Momentos Dif Ciles), 信区: BuildingWeb
标 题: 如何最简单的获得一个随机字符串(PHP)?
发信站: BBS 未名空间站 (Mon Dec 3 00:08:08 2007)
How to generate a random string in PHP?
Can I do this? Or does it look stupid?
$a = rand();
$b = crypt($a);