Advertisement
metalx1000

PHP Reverse Sort - Lines in a File

Jan 27th, 2012
410
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.12 KB | None | 0 0
  1. <?php
  2. $lines = file ('list.txt');
  3. $l = array_reverse ($lines);
  4. foreach($l as $line)
  5. {
  6. echo $line . "<br>";
  7. }
  8.  
  9. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement