日期:2014-05-17 浏览次数:20449 次
$arr=array( '1:xxx', '2:xxx', '3:xxx', '4:xxx', '5:xxx', '6:xxx', '7:xxx', '8:xxx', '9:xxx', '100:xxx' ); $keys=array_rand($arr,8); foreach($keys as $k) echo $arr[$k].'';