How i can show one array in each loop? for example with this code i can show random color codes for each loop, but i need to show order by DESC:
$Colors = array('111', '222', '333', '444', '555');
$i = 1;
while($i <= $Limit){
echo "Color Code:". $Colors[array_rand($Colors)]."<br>";
$i++;
}
and this is my result and problem:
Color Code:333
Color Code:333
Color Code:444
Color Code:111
Color Code:555
Color Code:222
Color Code:111
Color Code:222
Color Code:555
Color Code:222
Color Code:333
Color Code:444
how i can show the result like this:
Color Code:111
Color Code:222
Color Code:333
Color Code:444
Color Code:555
Color Code:111
Color Code:222
Color Code:333
Color Code:444
Color Code:555
Color Code:111
Color Code:222
...