Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

random array php

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

echo $random; // a or b or c
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #random #array #php
ADD COMMENT
Topic
Name
1+9 =