PHP strrev() Function


The strrev() function is used reverse a given string

Syntax
strrev(string)
Parameters
  • String - (Required) Specify the string to reverse.
Example
<?php
    echo strrev("Good Morning!");
?>

Output

!gninroM dooG

Prev Next