Skip to content

Function: array_diff() ​

array_diff<T>(array1, ...arrays): T[]

Defined in: src/php-arrays.ts:295

Compute the difference of arrays.

Type Parameters ​

T ​

T

Parameters ​

array1 ​

T[]

The array to compare from

arrays ​

...T[][]

The arrays to compare against

Returns ​

T[]

The difference of the arrays

Documentation of 1.0.13 , built from cf61d3b on 1.0.13 by pipeline #2985011498 on 2026-10-21.