strrev
Reverse a string
(
PHP 3, PHP 4
)
string
strrev
(
string
string
)
Returns
string
, reversed.
Example 961. Reversing a string with strrev()
copy to clipboard
<?php
echo
strrev
(
"Hello world!"
);
// outputs "!dlrow olleH"
?>
<< strrchr
Main
:
Function Reference
:
String functions
: strrev
strripos >>
This page online
Report a bug
This HTML Help has been published using the chm2web software.