I have an array of phrases. I\'d like to randomly pick phrases from the array in a loop. I don\'t want to pick the same phrase more then once in the loop. I thought I could
Shuffle the array in random order, and just pop the last element off.
$array = [...]; shuffle($array); while($element = array_pop($array)){ echo 'Random element:' . $element; }