Your Ad Here
String Function
Execute String Function Online
String Functions Online Tool

Php Reverse String Tutorial

 

strrev() - Reverse String Tutorial

strrev() reverse a string.

string strrev ( string $str )

The $str parameter is a string.
It returns a reversed string.

 

Php Reverse String Example

Example: Let's reverse the string "HeLLo WoRlD!"

$string = "HeLLo WoRlD!";
$reversed_string = strred($string);
echo $reversed_string;

The reverse string function returns the reversed string "!DlRoW oLLeH". It simply reverses the order of the characters of a string.

Test it online using our Reverse String Tool