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(); ?>
OUTPUT
aciremA ot emocleW
0 0Please Login to Post the answer