RosettaCodeData/Task/Reverse-a-string/PHP/reverse-a-string-2.php

2 lines
51 B
PHP

implode('', array_reverse(mb_str_split($string)));