<? $data = file('data.txt'); shuffle($data); foreach ($data as $value) { echo "Value: $value<br />\n"; } ?>