Go to: Synopsis. Return value. Related. MEL examples.
string stringArrayToString(string $array[],
string $separationString)
None
| Variable Name | Variable Type | Description |
|---|---|---|
| $array | string[] | The string array. |
| $separationString | string | Defines the characters to place between each string element. |
stringArrayToString({ "red", "blue", "green" }, "");
// Result: redbluegreen //
stringArrayToString({ "red", "blue", "green" }, ", ");
// Result: red, blue, green //
stringArrayToString({ "user", "directory", "documents", "file" }, "/");
// Result: user/directory/documents/file //