随机数

$arrayid = array("1","2","3","4");
$teid = array_rand($arrayid,1);
$tid = $arrayid[$teid];
echo $tid;

posted @ 2017-07-18 10:07  TOPHP  阅读(132)  评论(0编辑  收藏  举报