Answers for "show random data from array php"

PHP
4

array random php

<?php
$indexedArray = array("red", "blue", "green", "black");
echo $indexedArray[array_rand($indexedArray)];
?>
Posted by: Guest on September-11-2021

Code answers related to "show random data from array php"

Browse Popular Code Answers by Language