Example
Reverse the string "Hello World!":
html
<?php
echo strrev("Hello World!");
?>
Definition and Usage
The strrev() function reverses a string.
Syntax
text
strrev(string)
Parameter Values
| Parameter | Description |
|---|---|
| string | Required. Specifies the string to reverse |
Technical Details
| Return Value: | Returns the reversed string |
|---|---|
| PHP Version: | 4+ |