Some time ago during a job interview I got the task to reverse a string in PHP without using strrev.
strrev
My first solution was something like this:
$string = 'abc'; $reverted = implode(array_reverse(str_split($string)));