How to reverse a string in PHP Published: August 25, 2019 strrev() function Table of Contents 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: MYSQL, Php, 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: Share on Facebook Share on Twitter Share on Email Share on Whatsapp Copy Link