当我重新加载浏览器时,我试图做正确的事情,数组随机变化而没有重复。当我重新加载浏览器时,我看到重复的数组随机出现,请帮助我。
这是代码
<html>
<head></head>
<body>
<?php
$size = 3; $strl = "what"; $fitness1 = array("steps $strl", "dizziness $strl", "$strl symptoms ", "treatment $strl", "obesity $strl","$strl discharge");
$fitness1 = array_unique($fitness1);
$number = 1;
for ($b = 0; $b < $size ;$b++){
echo $number++ . "<table><tr><td> " . $fitness1[array_rand($fitness1)] . "<td></tr></table>";echo $number++ . "<table><tr><td> " . $fitness1[array_rand($fitness1)] . "<td></tr></table>";
for ($i = 0; $i < $size; $i++){
}
}
?>
</body>
</html>
元芳怎么了
叮当猫咪
随时随地看视频慕课网APP