English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
PHP String String Function Manual
The strrev() function is used to reverse the string.
string strrev ( string $string )
Used to reverse strings
It returns the reversed string
Serial Number | Parameter and Description |
---|---|
1 | string Original String to Be Reversed. |
Try the following examples, example of reversing characters:
<?php //Example of Reversing Characters echo strrev("www.w"3codebox.com//moc.ooohn.www echo '<br>'; echo strrev("Hello world!"); // Output "!dlrow olleH" ?>Test and see‹/›
Output Result
moc.ooohn.www !dlrow olleH