$teaserarr = array();
$teaserarr[0] = "/scripts/teaser/cn/1.php";
$teaserarr[1] = "/scripts/teaser/cn/2.php";
$teaserarr[2] = "/scripts/teaser/cn/3.php";
$teaserarr[3] = "/scripts/teaser/cn/4.php";
$teaserarr[4] = "/scripts/teaser/cn/5.php";
$teaserarr[5] = "/scripts/teaser/cn/6.php";
//随机显示一条记录
$myteaser = array_rand($teaserarr);
echo $teaserarr[$myteaser];
//随机显示两条记录
$myteaser = array_rand($teaserarr,2);
foreach($myteaser as $v){
echo $teaserarr[$v];
}
//echo $teaserarr[$myteaser];
?>