码迷,mamicode.com
首页 > Web开发 > 详细

php中使用随机数

时间:2014-05-24 01:27:45      阅读:231      评论:0      收藏:0      [点我收藏+]

标签:c   tar   a   使用   art   for   

<?php
session_start();
$s = 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","0","1","2","3","4","5","6","7","8","9");
$r="";

for($i=1;$i<=4;$i++){
$r .= $s[rand(0,count($s)-1)];
}

 

不要小看  要是叫你写你还写不出来的

php中使用随机数,布布扣,bubuko.com

php中使用随机数

标签:c   tar   a   使用   art   for   

原文地址:http://www.cnblogs.com/RBBiog/p/3736864.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!