Answers for "randomly pick string from array"

0

randomly pick string from array

echo ['green', 'blue', 'red'][rand(0,2)];
Posted by: Guest on June-28-2021

Code answers related to "randomly pick string from array"

Browse Popular Code Answers by Language