xn_rand($n = 16)
产生随机字符串。
$n:位数
<?php include "./xiunophp/xiunophp.php"; $s = xn_rand(16); echo $s; // 结果:kd3igi2a7we9gkj3 ?>