User:Cometstyles/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. " "; } } ?>