Advertisement
metalx1000

PHP - Reverse Alpha/Numeric File Lines

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