Friday, April 3, 2015

How to reverse a string - PHP Snippet

How to reverse a string - PHP Snippet

Simply use PHP strrev() function to reverse a string quickly.
echo strrev("Hello world!"); // outputs !dlrow olleH
Disqus Comments