HOW TO USE THE strrev() FUNCTION IN PHP
The strrev() function takes a string and reverses the characters back to front.
Example 1:
$string="John";
$newstring=strrev($string);
echo $newstring;
The above will output: nhoJ
Example 2:
$string="once upon a time in mexico";
$newstring=strrev($string);
echo $newstring;
The above will output: ocixem ni emit a nopu ecno
|