join method: Utility class
Syntax
join(&Array, Tag)
Description
Use this method to concatenate the string array together enclosing each string element in the specified tag.
Parameters
| Parameter | Description |
|---|---|
|
&Array |
Specifies the array of string to be concatenated together. |
|
Tag |
Specifies the tag to enclose each string element. |
Returns
A string containing the concatenation of each of the string elements enclosed by the specified tag.
Example
import PTFP_FEED:UTILITY:Utility;
Local PTFP_FEED:UTILITY:Utility &utility = create PTFP_FEED:UTILITY:Utility();
&str = &utility.join(CreateArray("value1", "value2"), "p");
/* &str="<p>value1</p><p>value2</p>" */
Related Topics