Home  >  Article  >  Backend Development  >  php string strrev function_PHP tutorial

php string strrev function_PHP tutorial

WBOY
WBOYOriginal
2016-07-20 11:00:29934browse

strrev 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 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...
Statement:
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