Thread
:
PHP pulling random line
View Single Post
2022-01-16, 10:27 AM
#
7
balas
Just because I don't care doesn't mean I don't understand!
Join Date: Jan 2004
Location: Poland
Posts: 91
<?php
$f_contents = file("random_source.txt");
$line = $f_contents[rand(0, count($f_contents) - 1)];
?>
__________________
have phun
balas
View Public Profile
Visit balas's homepage!
Find More Posts by balas