I have a text file with a list of sentences on each line. Currently, I just randomize the lines but have many duplicates show up. How can I get these lines into an array and then show them all randomly but don't show a sentence again until all sentences have been shown. Basically, I need to loop through the array one full time before I show the quotes over again.
<?php
$list = file('list.txt');
shuffle($list);
echo $list[0];
?>