note 49935 deleted from function.rand by felipe

From: Date: Sun, 09 Dec 2007 15:36:05 +0000
Subject: note 49935 deleted from function.rand by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-133064@lists.php.net to get a copy of this message
Note Submitter: ---- <?php //A way to make random quotes. $file="quotefile.txt"; $file=file($file); $count=count($file); $i=0; $rand=rand($i, $count); echo $rand; //this will output a random line in a textfile called quotefile.txt ?>

« previous php.notes (#133064) next »