It is possible to reverse a string using PHP's built-in function strrev().
Here are the top features of this function.
1. It contains a single parameter of string type.
2. It returns the reversed string as a result.
3. It introduced in PHP version 4.
Let's see an example.
We are reversing the string Hello and the output is olleH.
$str = "Hello";
$result = strrev($str);
echo $result;