The PHP built-in function strrev() is used to reverse the string or reverse the text writing direction of the string.
Let's check the following example to understand how this function actually works.
<?php $string = "Welcome to America"; echo strrev(); ?>
aciremA ot emocleW0 0
Please Login to Post the answer