Go to: Synopsis. Return value. MEL examples.
int stringArrayRemoveAtIndex(int $index, string[] $list)
None
| Variable Name | Variable Type | Description |
|---|---|---|
| $index | int | The index of the element to remove from $list. |
| $list | string[] | A list of string values. |
string $array1[] = {"item1", "item2", "item3"};
// Result: item1 item2 item1 //
stringArrayRemoveAtIndex(1, $array1);
// Result: 1 //
print $array1;
// Result: item1 item3 //