Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | str.implode SEARCH    

  Functions
str.adjustLineBreaks
str.char
str.comma
str.escape
str.explode
str.implode
str.left
str.len
str.lower
str.pos
str.pos.ex
str.replace
str.right
str.sub
str.trim
str.unescape
str.upper
str.wrapText

  MioScript Reference
> Statements
app...
browser...
dialog...
disk...
draw...
extern...
filename...
keyboard...
menu...
mio...
mouse...
num...
path...
pushButton...
reg...
RS232...
sci...
screen...
shortcut...
sound...
str...
system...
time...
var...
window...

Function
str.implode

Language: MioScript
Product: MioFactory


Syntax

str.implode(Array, Separator)


Parameters

ARRAYArrayName of the variable containing the array.
STRINGSeparatorOptional.
Separator.


Return value

String.



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