<?php function revStr(string $str): string { $str = str_split($str); krsort($str); return implode($str); } echo revStr('SnackOverflow');
You have javascript disabled. You will not be able to edit any code.