更新时间:2023-11-10 21:24:10
将它们放在一个数组中并使用 array_rand 获取随机密钥.
Put them in an array and use array_rand to get a random key.
function random()
{
$phrases = array(
'random test 1',
'random test 2',
'random test 3'
);
return $phrases[array_rand($phrases)];
}