array_udiff_uassoc

array_udiff_uassoc

(PHP 5, PHP 7)

array_udiff_uassocComputes the difference of arrays with additional index check, compares data and indexes by a callback function

Description

array array_udiff_uassoc ( array $array1 , array $array2 [, array $... ], callable $value_compare_func , callable $key_compare_func )

Computes the difference of arrays with additional index check, compares data and indexes by a callback function.

Note that the keys are used in the comparison unlike array_diff() and 登录查看完整内容