Drupal 8  8.0.2
DiffArray Class Reference

Static Public Member Functions

static diffAssocRecursive (array $array1, array $array2)
 

Detailed Description

Provides helpers to perform diffs on multi dimensional arrays.

Member Function Documentation

static diffAssocRecursive ( array  $array1,
array  $array2 
)
static

Recursively computes the difference of arrays with additional index check.

This is a version of array_diff_assoc() that supports multidimensional arrays.

Parameters
array$array1The array to compare from.
array$array2The array to compare to.
Returns
array Returns an array containing all the values from array1 that are not present in array2.

Referenced by DiffArrayTest\testDiffAssocRecursive().

Here is the caller graph for this function:


The documentation for this class was generated from the following file: