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