Home > Backend Development > PHP Tutorial > php string strrev function_PHP tutorial

php string strrev function_PHP tutorial

WBOY
Release: 2016-07-20 11:00:29
Original
980 people have browsed it

strrev definition and usage
The strrev ( ) function is to reverse a string.

Let’s take a look at its syntax

strrev(string)
Copy after login
Copy after login

Parameter description string: required. The specified string to reverse

Let’s take a look at a simple example.

echo strrev("www.111cn.cn ");

?>

The output result is.

nc.nc111.www

The

characters are reversed,


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/445517.htmlTechArticlestrrev definition and usage The strrev () function is to reverse a string. Let’s take a look at its syntax strrev(string) parameter description string: required. The specified string, starting with...
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