array_udiff

array_udiff

(PHP 5, PHP 7)

array_udiffComputes the difference of arrays by using a callback function for data comparison

Description

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

Computes the difference of arrays by using a callback function for data comparison. This is unlike array_diff() which uses an internal function for comparing the data.