note 24997 added to function.file

From: Date: Sat, 07 Sep 2002 11:52:33 +0000
Subject: note 24997 added to function.file
Groups: php.notes 
Request: Send a blank email to php-notes+get-36291@lists.php.net to get a copy of this message
need a random line stamp? useful for humour stories :-) <? $file = file("/path/to/your/file"); mt_srand ((double) microtime() * 1000000); $line = mt_rand(0,count($file)); echo $file[$line]; ?> -- http://www.php.net/manual/en/function.file.php http://master.php.net/manage/user-notes.php?action=edit+24997 http://master.php.net/manage/user-notes.php?action=delete+24997 http://master.php.net/manage/user-notes.php?action=reject+24997

« previous php.notes (#36291) next »