Home > Backend Development > PHP Tutorial > Usage of PHP reverse string function strrev() function_PHP tutorial

Usage of PHP reverse string function strrev() function_PHP tutorial

WBOY
Release: 2016-07-21 15:20:48
Original
932 people have browsed it

Haha, it’s fun, I really want to make a function encyclopedia website, but because my energy is limited, I am busy enough just writing WEB development notes and updating one article a day, because my career is not just about writing. This blog, as well as many other websites, need to be maintained. I just write soft articles and publish original works every day. It is really tiring. Well, if I have the opportunity in the future, I will still build the Function Encyclopedia Network. I hope everyone will support it.

Definition and usage
strrev() function reverses a string.

Syntax
strrev(string)
Parameter Description
string Required. Specifies the string to reverse.
Example

Copy code The code is as follows:

echo strrev("Hello World! ");
?>

Output:
!dlroW olleH

For example:
Copy code The code is as follows:

$str="Hello world";
$result=strrev($str);
echo $result;
//The output result is: dlrow olleH;
?>

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/325041.htmlTechArticleHaha, it’s fun, I really want to make a function encyclopedia website, but because my energy is limited, I just Writing WEB development notes and updating one article a day is already busy enough, because my job...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template