Answers for "php array randomize"

PHP
2

random array php

$array = ["a", "b", "c"];
$random = $array[ Rand(0, count($array)-1) ];

echo $random; // a or b or c
Posted by: Guest on August-17-2021
3

php shuffle array

shuffle($myAry);
Posted by: Guest on March-04-2020

Browse Popular Code Answers by Language