Reverse StringA string can be reversed either using strrev() function or simple PHP code. For example, on reversing JAVATPOINT it will become TNIOPTAVAJ. Logic:
Reverse String using strrev() functionA reverse string program using strrev() function is shown. Example: Output: Reverse String Without using strrev() functionA reverse string program without using strrev() function is shown. Example: Output:
Next TopicSwapping two numbers
|