php reverse characters in string code example Example: how to reverse a string in php use strrev(); function