|
|
|
|
Functions
MioScript Reference
|
|
Syntax
| str.implode(Array, Separator) |
Parameters
| ARRAY | Array | Name of the variable containing the array.
| | STRING | Separator | Optional. Separator. |
Return value
Description
Returns the concatenation of each item of the array.
If specified, the separator is added between each item.
This function is an alias of str.implode.
See also: str.explode.
Note: This function is defined in the library klib.k and is linked automatically. |
MioScript Sample Code
&myArray[] = "Item 1^^Item 2^^Item 3"
&myString = str.implode(myArray, "<BR>")
alert(&myString)
// The result is: Item 1<BR>Item 2<BR>Item 3 |
|
|
|