All Go Rust Python PHP JavaScript
Chrome Dev Summit to secure your spot in workshops, office hours and learning lounges!

How to reverse a string in PHP

Reverse a Unicode String in PHP.Using strrev Function The strrev() reverse a string. // !olleH echo strrev("Hello!"); // does not support utf-8 encoding strrev("Hello,世界"); !olleH Using For Loop FOR LOOP will start with the value of the length o...