Reverse a String in PHP

The strrev() function returns reverse of a string.In php have a lot of Inbuilt functions like strlen() is used to find string length.

Source code :

<?php
echo strrev("Awesome world!");
?>

Output :

!dlrow emosewA

Output :


                

Comments :