Date: Fri, 29 Mar 2024 02:59:20 -0700 (PDT) Message-ID: <1439171248.501.1711706360492@wiki.srpcs.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_500_1144920353.1711706360491" ------=_Part_500_1144920353.1711706360491 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Returns an array whose items are in reverse order of the given a= rray.
Syntax
NewArray =3D SRP_A= rray("Reverse", Array, Delimiter)
The reversed array.
Parameter | Description |
---|---|
Array | The dynamic array to be reversed. (= REQUIRED) |
Delimiter | The delimiter that separates items in Array.&nbs= p;(OPTIONAL) |
This service quickly creates a new array whose items are the same items = as the given array but in reverse order. If you pass in the following array= ...
"Apple":@FM:"Banan= a":@FM:"Orange":@FM:"Kiwi"
... you get this:
"Kiwi":@FM:"Orange= ":@FM:"Banana":@FM:"Apple"
The delimiter used in the return value will be the same used in the give= n array, which you can set using the Delimiter parameter. If Delimiter is o= mitted, @FM is assumed.
// Reverse @FM del= imited array Array =3D "Apple":@FM:"Banana":@FM:"Orange":@FM:"Kiwi" Reversed =3D SRP_Array("Reverse", Array) // Reverse comma delimited array Array =3D "Apple,Banana,Orange,Kiwi" Reversed =3D SRP_Array("Reverse", Array, ",")