php 产生随机字符串
时间:2014-02-25 07:28:03
收藏:0
阅读:283
1
2
3
4
5
6
7
8 |
public function create_code( $pw_length ) { $randpwd
= "" ; for
( $i = 0; $i < $pw_length ; $i ++) { $randpwd
.= chr (mt_rand(33, 126)); } return urlencode( $randpwd ); } |
原文:http://www.cnblogs.com/echofrank/p/3564247.html
评论(0)