Last active
September 26, 2018 13:45
-
-
Save krishjun/a9dbb221f5bb52bbb05de8c31272391e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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