Home  >  Article  >  Backend Development  >  PHP reverse string function strrev()

PHP reverse string function strrev()

黄舟
黄舟Original
2017-11-06 09:08:061738browse

Example

ReverseString "Hello World!":

Definition and usage

strrev() FunctionReverse the string.

Syntax

strrev(string)
Parameters Description
string Required. Specifies the string to reverse.

Technical Details

Return value: Returns the reversed string.
PHP version: 4+
##Example

Output:


!dlroW olleH

For example:


The above is the detailed content of PHP reverse string function strrev(). For more information, please follow other related articles on the PHP Chinese website!

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