Print Reverse String in PHP
To print reverse string in php, we need to use strrev() function. It is PHP in-built function and it is used to print the reverse string. In javascript, There is no function to print string in reverse but in PHP we can use strrev() function
Example:
<?php
$string1 = "WONDER DEVELOP";
echo strrev(string1);
?>
Output:
POLEVED REDNOW