Posted by brainmonger@gmail.com on 03/07/06 03:32
Since you have an array made up of all the lines from your file, you can use array_rand to grab 1 or more random elements from the array. $rand_line = array_rand($lines, 1);
[Back to original message]
Copyright © 2005-2006 Powered by Custom PHP Programming