Gooday
Note
Scrap
Source
Android
login
작성일 : 09-12-04 14:09
array_rand
글쓴이 :
k
조회 : 2,477
srand((double)microtime() * 10000000);
$input = array("Neo", "Morpheus", "Trinity", "Cypher", "Tank");
$rand_keys = array_rand($input, 2);
echo $input[$rand_keys[0]] . "<BR>";
echo $input[$rand_keys[1]];