All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
C#中使用net,share命令时要注意的问题_.net资料_编程技术
SQLServer数据库维护计划莫名其妙就失效的解决办_[SQL Server教程]
Ajax核心:XMLHTTP组件相关技术资料_[AJAX教程]_0
C#控制语句中的switch语句用法
C#中生成中文繁体web页面_[Asp.Net教程]
c#中GDI+图形图像:GDI+中的椭圆和弧使用方法
ASP.NET中的Response对象的方法_.net资料_编程技术
动态控件添加终极解决方案_[Asp.Net教程]
C#中用户控件的应用实例
在Visual,C#程序中使用系统热键_.net资料_编程技术
Reading number is top 10 pictures
擦地板的大叔太好了
Sora aoi on twitter4
张家界的玻璃桥
A man's favorite things14
29 the belle stars after bath figure2
The little woman's bright wire2
中国的阶级现状
Ashlynn Brooke a group sexy photo3
NeedWallpaper2
为什么别人说你是疯子
Download software ranking
C语言教程TXT
Sora aoi‘s film--Lust fan wall
Call Of Duty2
SP4 for SQL2000
致我们终将逝去的青春
WebService在.NET中的实战应用教学视频 → 第5集
c#程序设计案例教程
天龙八部十二宫服务端
传奇私服架设教程-chm
Eclipse 4.2.2 For Win32
归海一刀 published in(发表于) 2014/2/17 7:38:08 Edit(编辑)
PHP生成随机字符串_[PHP教程]

PHP生成随机字符串_[PHP教程]

PHP生成随机字符串_[PHP教程]

PHP生成随机字符串的函数,下面是我在网上找到的2个关于PHP随机字符串的函数,希望大家喜欢。


< ?php
function genRandomString(len)
{
chars = array(
"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k",
"l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v",
"w", "x", "y", "z", "A", "B", "C", "D", "E", "F", "G",
"H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R",
"S", "T", "U", "V", "W", "X", "Y", "Z", "0", "1", "2",
"3", "4", "5", "6", "7", "8", "9"
);
charsLen = count(chars) - 1;

shuffle(chars); // 将数组打乱

output = "";
for (i=0; i {
output .= chars[mt_rand(0, charsLen)];
}

return output;

}

str = genRandomString(25);
str .= "
";
str .= genRandomString(25);
str .= "
";
str .= genRandomString(25);

echo str;

?>


/* Generate Password
* Length : 8
*/
str = "0123456789abcdefghijklmnopqrstuvwxyz"; // 输出字符集
n = 8; // 输出串长度
len = strlen(str)-1;
for(j=0 ; j<200 ; j++){
for(i=0 ; i s .= str[rand(0,len)];
}
echo s . "
";
s = "";
}

?>







添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.