Forum und email

strrev

(PHP 4, PHP 5)

strrev — Reverse a string

Descrierea

string strrev ( string $string )

Returns string , reversed.

Parametri

string

The string to be reversed.

Valorile întroarse

Returns the reversed string.

Exemple

Example#1 Reversing a string with strrev()

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