Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

array random php

<?php
$indexedArray = array("red", "blue", "green", "black");
echo $indexedArray[array_rand($indexedArray)];
?>
 
PREVIOUS NEXT
Tagged: #array #random #php
ADD COMMENT
Topic
Name
2+5 =