Core Function Reverse

From Sputnik Wiki
Revision as of 01:20, 12 September 2013 by UberFoX (Talk | contribs)
Jump to: navigation, search
Reverse( <expression> )

Contents

Description

Reverse all characters in a string.

Parameters

expression

The string to use.

Return Value

Success: Returns new string.

Failure: Returns old string.

Remarks

None.

Example

$str = "The quick brown fox";
MsgBox(     Reverse($str)      );

Modify the string in place

$a = "Hello";
say $a; // Hello
$a->Reverse();
say $a; // olleH
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox