Skip to content

Instantly share code, notes, and snippets.

@krishjun
Last active September 26, 2018 13:45
Show Gist options
  • Save krishjun/a9dbb221f5bb52bbb05de8c31272391e to your computer and use it in GitHub Desktop.
Save krishjun/a9dbb221f5bb52bbb05de8c31272391e to your computer and use it in GitHub Desktop.
function reverseMe($input) {
$len = strlen($input);
$output = '';
for($i = $len - 1 ; $i > -1 ; $i--) {
$output .= $input[$i];
}
return $output;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment