PHP String Functions

strrev() Function

Definition and Usage

The strrev() function reverses a string.


Syntax

strrev(string)


Parameter Description
string Required. Specifies the string to reverse

Example

Reverse the string "Hello World!":

<?php
echo strrev("Hello World!");
?>

Run Example>>