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
$arraystring[]The string array.
$separationStringstringDefines 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 //