1--TEST--
2Test array_diff_uassoc() function : usage variation - Comparing integers and floating point numbers
3--FILE--
4<?php
5echo "*** Testing array_diff_uassoc() : usage variation ***\n";
6
7//Initialize variables
8$arr_default_int = array(1, 2, 3, 4);
9$arr_float = array(0 => 1.00, 1.00 => 2.00, 2.00 => 3.00, 3.00 => 4.00);
10
11
12function key_compare_func($key1, $key2)
13{
14    if ($key1 === $key2) {
15        return 0;
16    }
17    return ($key1 > $key2)? 1:-1;
18}
19
20echo "\n-- Result of comparing integers and floating point numbers --\n";
21var_dump( array_diff_uassoc($arr_default_int, $arr_float, "key_compare_func") );
22var_dump( array_diff_uassoc($arr_float, $arr_default_int, "key_compare_func") );
23
24?>
25--EXPECT--
26*** Testing array_diff_uassoc() : usage variation ***
27
28-- Result of comparing integers and floating point numbers --
29array(0) {
30}
31array(0) {
32}
33