PHP reverse string function strrev () usage. I really want to create a function for Baike. I only write WEB development notes because of my limited energy. I am busy updating an article a day, because, I really want to create a function for Baike. I only write WEB development notes because of my limited energy, one day, the update of an article is busy, because my job is not just about writing this blog, but there are many other websites that need to be maintained. every day, I write soft texts and publish original articles, I am so tired. well, I have a chance to do it in the future. I hope you can support it.
Definition and usage
The strrev () function reverses the string.
Syntax
Strrev (string)
Parameter description
String is required. Specifies the string to be reversed.
Example
The code is as follows:
Echo strrev ("Hello World! ");
?>
Output:
! DlroW olleH
For example:
The code is as follows:
$ Str = "Hello world ";
$ Result = strrev ($ str );
Echo $ result;
// The output result is dlrow olleH;
?>
...