mate1988 阅读(1527) 评论(0)
<?php
header("Content-type:text/html;charset=utf-8");
$user = array(
		0=>array("name"=>"李四","tel"=>"15291800999"),
		1=>array("name"=>"王五","tel"=>"13191451138"),
		2=>array("name"=>"赵六","tel"=>"18699988889")
		);
 $index = mt_rand(0,count($user)-1);

?>
<h1>中奖用户姓名是:<?php echo $user[$index]["name"]?></h1>

发表评论
切换编辑模式