Reverse the string "Hello World!":
<?phpecho strrev("Hello World!");?>The strrev() function reverses a string.
strrev( string )
parameter | describe |
---|---|
string | Required. Specifies the string to reverse. |
Return value: | Returns the reversed string. |
---|---|
PHP version: | 4+ |