Answers for "how to randomize an array in php without using function"

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 "how to randomize an array in php without using function"

Browse Popular Code Answers by Language