1
chuck911 2011 年 9 月 23 日
$lines = file('x.txt');
$randomLine = $lines[rand(0,count(lines))]; |
2
explon 2011 年 9 月 23 日
楼上的 count 要 -1
|