1--TEST-- 2Test array_udiff_assoc() function : variation 3--FILE-- 4<?php 5/* Prototype : array array_udiff_assoc(array arr1, array arr2 [, array ...], callback key_comp_func) 6 * Description: Returns the entries of arr1 that have values which are not present in any of the others arguments but do additional checks whether the keys are equal. Keys are compared by user supplied function. 7 * Source code: ext/standard/array.c 8 * Alias to functions: 9 */ 10 11echo "*** Testing array_udiff_assoc() : variation - testing with multiple array arguments ***\n"; 12 13include('compare_function.inc'); 14$key_compare_function = 'compare_function'; 15 16// Initialise all required variables 17$arr1 = array("one" => "one", "02" => "two", '3' => "three", "four", "0.5" => 5, 6.0 => 6, "seven" => "07"); 18$arr2 = array("one" => "one", "02" => "two", '3' => "three"); 19$arr3 = array("four", "0.5" => "five", 6 => 6, "seven" => 7); 20$arr4 = array("four", "0.5" => "five", 6 => 6, "seven" => 7); 21 22 23var_dump( array_udiff_assoc($arr1, $arr2, $arr3, $arr4, $key_compare_function) ); 24 25 26?> 27===DONE=== 28--EXPECTF-- 29*** Testing array_udiff_assoc() : variation - testing with multiple array arguments *** 30array(2) { 31 [4]=> 32 string(4) "four" 33 ["0.5"]=> 34 int(5) 35} 36===DONE=== 37