A php program to print the reverse a string. Using this program to reverse the string using strrev function. The term “string” refers to a group of characters. PHP supports a number of data types, including strings. Alphanumeric characters are allowed in string variables. When you declare a variable and assign string characters to it, you get a string.
$string = "welcome to inlarn";
echo "Reverse string of $string is " .strrev ( $string );
Reverse string of welcome to inlarn is nralni ot emoclew