piterskiy

Random text from file

Mar 2nd, 2016
24,125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.     $f_contents = file("random.txt");
  3.     $line = $f_contents[rand(0, count($f_contents) - 1)];
  4. ?>
Add Comment
Please, Sign In to add comment