User:Whilding87/ListReverser

List reverser is a small PHP script to aid reversing lists (in non-chronological order primarily).

Source code
Name the file as 'reverse.php'

List Reverser 

  List to reverse  

<? if ($_POST['list'] != "") { echo "Reversed list "; // Split into lines $lines   = explode("\n", $_POST['list']); $reversed = array_reverse($lines); for ($i = 0; $i < count($reversed); $i++) {   $output = str_replace("\'", "'", $reversed[$i]); echo $output. " "; } } ?>