Go to: Synopsis. Return value. MEL examples.
int[] intArrayRemove(int[] $item, int[] $list)
int[] : Original list with all occurrences of the int items removed. If none of the int items are in the int array then the returned int array is identical to the argument int array. |
Variable Name | Variable Type | Description |
---|---|---|
$items | int[] | A list of int values to remove from the int array. |
$list | int[] | The array to be acted upon. |
int $list[] = { 1, 2, 3, 4, 5, 6, 7, 8 }; int $items[] = { 1, 3, 5, 7 }; int $diff[] = intArrayRemove($items, $list); // Result : { 2, 4, 6, 8 } //