Current Location: Home> Function Categories> strrev

strrev

Reverse a string
Name:strrev
Category:String
Programming Language:php
One-line Description:Invert the string.

Definition and usage

strrev() function inverts the string.

Example

Invert the string "I love Shanghai!":

 <?php
echo strrev ( "I love Shanghai!" ) ;
?>

Try it yourself

grammar

 strrev ( string )
parameter describe
string Required. Specifies the string to be reversed.
Similar Functions
Popular Articles