1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/ext/standard/tests/array/array_udiff_assoc_variation.phpt
George Peter Banyard 3fbd3d2e2f Remove usage of float keys in arrays
Also make test output not produce trailling whitespaces

Closes GH-6662
2021-02-09 02:55:54 +00:00

29 lines
826 B
PHP

--TEST--
Test array_udiff_assoc() function : variation
--FILE--
<?php
echo "*** Testing array_udiff_assoc() : variation - testing with multiple array arguments ***\n";
include('compare_function.inc');
$key_compare_function = 'compare_function';
// Initialise all required variables
$arr1 = array("one" => "one", "02" => "two", '3' => "three", "four", "0.5" => 5, 6 => 6, "seven" => "07");
$arr2 = array("one" => "one", "02" => "two", '3' => "three");
$arr3 = array("four", "0.5" => "five", 6 => 6, "seven" => 7);
$arr4 = array("four", "0.5" => "five", 6 => 6, "seven" => 7);
var_dump( array_udiff_assoc($arr1, $arr2, $arr3, $arr4, $key_compare_function) );
?>
--EXPECT--
*** Testing array_udiff_assoc() : variation - testing with multiple array arguments ***
array(2) {
[4]=>
string(4) "four"
["0.5"]=>
int(5)
}