function reverseString($str) {
$newStr = '';
for ($i = strlen($str) - 1; $i >= 0; $i--) {
$newStr .= $str[$i];
}
return $newStr;
}
echo reverseString('hello');
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)