join2D method: Utility class
Syntax
join2D(&Array, Tag, ChildTags)
Description
Use this method to concatenate the array of array of string together enclosing each element in the specified tag. Each child element is XML encoded and enclosed in the child tag.
Parameters
| Parameter | Description |
|---|---|
|
&Array |
Specifies the array of array of string to be concatenated together. |
|
Tag |
Specifies the tag to enclose each string element, as a string. |
|
ChildTags |
Specifies the tags to enclose each child element, as an array of string. |
Returns
A string containing the concatenation of each of the string elements enclosed by the specified tag. Each child element is XML encoded and enclosed in the child tag.
Example
import PTFP_FEED:UTILITY:Utility;
Local PTFP_FEED:UTILITY:Utility &utility = create PTFP_FEED:UTILITY:Utility();
&str = &utility.join2D(CreateArray(CreateArray("value1", "value2")), "div", ⇒
CreateArray("b", "i"));
/* &str="<div><b>value1</b><i>value2</i></div>" */