English [r?nd] US [r?nd]

n. ??? ???? ?? ??? ??, ????

???: rands rand

PHP array_rand() ?? ???

??: ??? ??? ? ??? ?????, ??? ? ??? ? ??? ????? ??? ?? ??? ? ??? ??? ??? ?????.

??: ??array_rand(??,??)

????:

??????
?? ?????. ??? ?????.
?? ????. ???? ??? ? ?? ?? ?????.

??: ???? ?? ??? ??? ???? ???? ?????. ? ?? ????? ??? ?? ?? ???? ? ?????. ? ? ??? ??? ???? ??? ?? ??? ??? ????, ??? ??? ?? ??? ?? ?????.

PHP array_rand() ?? ?

<?php
$a=array("php中文網(wǎng)","西門","講師","滅絕師太","無忌哥哥");
$rand_keys=array_rand($a,3);
echo $a[$rand_keys[0]]."<br>";
echo $a[$rand_keys[1]]."<br>";
echo $a[$rand_keys[2]];
?>
rerun ?????

??? ????? ??? "???? ??"??? ??????. ??? ????? ???

??:

php中文網(wǎng)
講師
無忌哥哥