strrev
Reverse a string
strrev()
function inverts the string.
Invert the string "I love Shanghai!":
<?php echo strrev ( "I love Shanghai!" ) ; ?>
Try it yourself
strrev ( string )
parameter | describe |
---|---|
string | Required. Specifies the string to be reversed. |