multiple keywords in an array are randomly combined for output. Refresh combination order is different
output string
$a=array ("red", "green", "blue", "yellow", "brown");
$random_keys=array_rand ($random_keys 4);
echo $a [$random_keys [0]]. "
";
echo $a [$random_keys [1]]. "
";
echo $a [$random_keys [2]];
this almost meets my requirements.
but the combined data will be repeated
should not be difficult, but I am a rookie.
give me a big brother to help