Go to: Synopsis. Return value. MEL examples.

Synopsis

string intArrayToString( int $array[], string $separationString )

Return a string that combines all the integer elements of $array, each separated by the separation string.

Return value

None

Arguments

Variable Name Variable Type Description
$arrayint[]The integer array.
$separationStringstringDefines the characters to place between each integer element.

MEL examples

	intArrayToString( { 1, 2, 3 }, "");
	// Result: 123 //

	intArrayToString({ 1, 2, 3 }, ", ");
	// Result: 1, 2, 3 //

	intArrayToString({ 1, 2, 3 }, "/");
	// Result: 1/2/3 //