This article describes the method of reverse string output in php. Share it with everyone for your reference. The specific analysis is as follows:
There is a very simple function in php for string reversal, namely strrev()
<?php print strrev('This is not a palindrome.'); ?>
The output results are as follows
.emordnilap a ton si sihT
I hope this article will be helpful to everyone’s PHP programming design.