Go to: Synopsis. Return value. Related. MEL examples.

Synopsis

string stringArrayToString(string $array[], string $separationString)

Return a string that combines all the argument array string elements, each separated by the separation string.

Return value

None

Related

stringToStringArray

Arguments

Variable Name Variable Type Description
$array string[] The string array.
$separationString string Defines the characters to place between each string element.

MEL examples

        stringArrayToString({ "red", "blue", "green" }, "");
        // Result: redbluegreen //

        stringArrayToString({ "red", "blue", "green" }, ", ");
        // Result: red, blue, green //

        stringArrayToString({ "user", "directory", "documents", "file" }, "/");
        // Result: user/directory/documents/file //