International PHP Conference 2015

strrev

(PHP 4, PHP 5)

strrevReverse a string

Descrierea

string strrev ( 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"
?>

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top