PHP strrev() Function
Example
Reverse the string "Hello World!":
Run Example »
Definition and Usage
The strrev() function reverses a string.
Syntax
strrev(
string
)
| Parameters | Description |
|---|---|
| string | Required. Specifies the string to reverse. |
Technical Details
| Return Value: | Returns the reversed string. |
|---|---|
| PHP Version: | 4+ |
PHP String Reference Manual