function reverseMe($input) { $len = strlen($input); $output = ''; for($i = $len - 1 ; $i > -1 ; $i--) { $output .= $input[$i]; } return $output; }