PHP strrev() function

The strrev() function reverse a string

Syntax

strrev ( string $string ) : string
	

Parameters

Parameter Name Descrption
$string Required, The input string.

Return Value

Return the reversed string.

strrev() examples

echo strrev("Test String");
//Output :: gnirtS tseT