X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

PHP strrev() Function

PHP String Reference PHP String Reference

Example

Reverse the string "Hello World!":

<?php
echo strrev("Hello World!");
?>

Run example »

Definition and Usage

The strrev() function reverses a string.


Syntax

strrev(string)

Parameter Description
string Required. Specifies the string to reverse

Technical Details

Return Value: Returns the reversed string
PHP Version: 4+


PHP String Reference PHP String Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook