strrev

(PHP 4, PHP 5, PHP 7)

strrevReverse a string

Descrierea

strrev ( string $string ) : string

Returns string, reversed.

Parametri

string

The string to be reversed.

Valorile întoarse

Returns the reversed string.

Exemple

Example #1 Reversing a string with strrev()

<?php
echo strrev("Hello world!"); // outputs "!dlrow olleH"
?>