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
  • One-way string hash crypt

    crypt

    One-waystringhash
  • Remove spaces (or other characters) from the beginning of the string ltrim

    ltrim

    Removespaces(orother
  • Output one or more strings echo

    echo

    Outputoneormorestrin
  • Calculate the md5 hash value of a string md5

    md5

    Calculatethemd5hashv
  • Convert the value of a one-dimensional array into a string implode

    implode

    Convertthevalueofaon
  • Binary safe comparison of several characters at the beginning of a string strncmp

    strncmp

    Binarysafecomparison
  • Set the first character of the string to lowercase lcfirst

    lcfirst

    Setthefirstcharacter
  • Reverse a string strrev

    strrev

    Reverseastring
Popular Articles