Definition
The strrev() function reverses a string.
Syntax
strrev(string)
Parameters
| Parameter | Description |
|---|---|
string |
Required. Specifies the string to reverse. |
Example
<?php
echo strrev("Welcome to PHP!");
The strrev() function reverses a string.
strrev(string)
| Parameter | Description |
|---|---|
string |
Required. Specifies the string to reverse. |
<?php
echo strrev("Welcome to PHP!");