.


Divya

strrev() Function in PHP


In PHP the strrev() function is used to get reverses of a string.

Syntax

strrev(string)

Example

<!DOCTYPE html>
<html>
<body>
<?php echo strrev("Hello World!");
?>
</body>
</html>

Output

!dlroW olleH



.