PHP strrev Function
What is strrev Function?
Explanation
In PHP, this function is used to reverse a given string.
Syntax:
strrev(string)
In the above syntax the string is reversed.
Example :
<?php
echo strrev("Hi folks!");
?>
Result :
!sklof iH
In the above example the string "Hi folks" is displayed in the reverse order from right to left.