Go to: Synopsis. Return value. MEL examples.

Synopsis

int stringArrayRemoveAtIndex(int $index, string[] $list)

Remove the entry at $index from the string array $list.

Return value

None

Arguments

Variable Name Variable Type Description
$indexintThe index of the element to remove from $list.
$liststring[]A list of string values.

MEL examples

  string $array1[] = {"item1", "item2", "item3"};
  // Result: item1 item2 item1 //
  stringArrayRemoveAtIndex(1, $array1);
  // Result: 1 //
	print $array1;
	// Result: item1 item3 //