Lasso Soft Inc. > Home

[String->Reverse]

[String->Reverse] modifies the base string in-place by reversing the order of all characters within the string.

  • Syntax
  • Parameters
[Variable: 'myString' = 'String Value']
[$myString->(Reverse)]
[Variable: 'myString']

<?LassoScript
Variable: 'myString' = 'String Value';
$myString->(Reverse)]
Output: $myString;
?>
Required Parameters
String The string to be operated on.
Examples

To reverse all the characters in a string:

Use the [String->Reverse] tag. The following example reverse a string so that it prints out backwards.

[Variable: 'myString' = 'A quick brown fox']
[$myString->(Reverse)]
[Output: $myString]
Result:
xof nworb kciuq A
Tag Link [String->Reverse] Category String
Type Member Data Source Any
Support Preferred Version 7.0
Output Type None Security None
Implementation Sets Lasso 7.0

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft