All Functions

reverse - reverse a string

This modifier function reverses the sequence of characters in a string.

Usage(s)

reverse ( $string ) Returns the input string with its characters in a reverse order

Parameter(s)

$string The string to be reversed

Example(s)

Reversing strings and numbers

reverse(Grumpy wizards make toxic brew for the evil Queen and Jack.)
Always returns:
kcaJ dna neeuQ live eht rof werb cixot ekam sdraziw ypmurG

reverse(1234,1337)
Always returns: 7331,4321

See also

truncate - truncate string length replace - string replace