String Reverse
The string::reverse
function reverses the order of characters in a string.
Syntax
string::reverse(<string>)
Parameters
string
: The input string to be reversed.
Returns
- String: A new string with characters in reverse order.
Example
string::reverse("hello")
This function is useful for manipulating strings or preparing them for certain types of transformations or tests.