array_udiff

PHP 5, PHP 7, PHP 8
array_udiff - Computes the difference of arrays by using a callback function for data comparison
Manual
Code Examples

Example #1 array_udiff example using stdClass Objects

Result: Array ( [0] => stdClass Object ( [width] => 11 [height] => 3 ) [1] => stdClass Object ( [width] => 7 [height] => 1 ) )
PHP Version:

Example #2 array_udiff example using DateTime Objects

Result: I'm available on the following days this week... Tuesday Thursday I'm busy on the following days this week... Monday: Cleaning GoogleGuy's apartment. Wednesday: Going on a snowboarding trip. Friday: Fixing buggy code.
PHP Version: