Rexx - reverse String


Advertisements

This method returns the characters in a reverse format.

Syntax

reverse(str) 

Parameters

  • str − The source string

Return Value

This method returns the characters in a reverse format.

Example

/* Main program */ 
a = "Hello World" 
say reverse(a) 

When we run the above program we will get the following result.

Output

dlroW olleH  
rexx_strings.htm
Advertisements