Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

rendomly mix array position in php

<?php
// Creating an array containing a range of elements
$numbers = range(1, 10);
 
// Randomize the order of array items
shuffle($numbers);
foreach ($numbers as $value){
    echo "$value" . "<br>";
}
?>
 
PREVIOUS NEXT
Tagged: #rendomly #mix #array #position #php
ADD COMMENT
Topic
Name
4+4 =