laravel random value from array

66

laravel random value from array -

$k = array_rand($array);
$v = $array[$k];

Comments

Submit
0 Comments