How to reverse a string in PHP August 25, 2019 1 Min Read 0 8 Last Update: October 12, 2019 The strrev() function is an built-in function in PHP which is used to reverse strings. Syntax: strrev(string) string – This parameter is required. It specifies the string to reverse. Example: <?phpecho strrev("PHP Tutorials!"); // Output: "!slairotuT PHP"?> Categorized in: MYSQLPhp Tagged in: palindrome without using string function in php, php reverse words in a string, replace string php, reverse a string in php using recursion, reverse array in php, reverse number in php without using function, reverse string in php using loop, reverse string without using built in function in php, string functions in php, string to array php Share Article: