DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
7+5 =
Submit