Home
last modified time | relevance | path

Searched refs:array_diff (Results 1 – 25 of 28) sorted by relevance

12

/PHP-8.2/ext/standard/tests/array/
H A Darray_diff_variation2.phpt2 Test array_diff() function : usage variations - unexpected values for 'array2' argument
6 * Test array_diff by passing non array values in place of $array2
9 echo "*** Testing array_diff() : usage variations ***\n";
85 // loop through each element of $inputs to check the behavior of array_diff
90 var_dump( array_diff($array, $input));
100 *** Testing array_diff() : usage variations ***
102 -- Iteration 1 --array_diff(): Argument #2 must be of type array, int given
104 -- Iteration 2 --array_diff(): Argument #2 must be of type array, int given
106 -- Iteration 3 --array_diff(): Argument #2 must be of type array, int given
108 -- Iteration 4 --array_diff(): Argument #2 must be of type array, int given
[all …]
H A Darray_diff_variation1.phpt2 Test array_diff() function : usage variations - unexpected values for 'array1' argument
6 * Test array_diff by passing non array values in place of $array1
9 echo "*** Testing array_diff() : usage variations ***\n";
85 // loop through each element of $inputs to check the behavior of array_diff
90 var_dump( array_diff($input, $array));
101 *** Testing array_diff() : usage variations ***
103 -- Iteration 1 --array_diff(): Argument #1 ($array) must be of type array, int given
105 -- Iteration 2 --array_diff(): Argument #1 ($array) must be of type array, int given
107 -- Iteration 3 --array_diff(): Argument #1 ($array) must be of type array, int given
109 -- Iteration 4 --array_diff(): Argument #1 ($array) must be of type array, int given
[all …]
H A Darray_diff_variation5.phpt18 var_dump(array_diff($arr_int, $arr_float));
19 var_dump(array_diff($arr_float, $arr_int));
23 var_dump(array_diff($arr_int, $arr_int_str));
24 var_dump(array_diff($arr_int_str, $arr_int));
27 var_dump(array_diff($arr_int, $arr_float_str));
28 var_dump(array_diff($arr_float_str, $arr_int));
32 var_dump(array_diff($arr_float, $arr_int_str));
33 var_dump(array_diff($arr_int_str, $arr_float));
36 var_dump(array_diff($arr_float, $arr_float_str));
37 var_dump(array_diff($arr_float_str, $arr_float));
[all …]
H A Darray_diff_variation7.phpt6 * Test how array_diff compares arrays that
11 echo "*** Testing array_diff() : usage variations ***\n";
17 var_dump(array_diff($arr1, $arr2));
18 var_dump(array_diff($arr2, $arr1));
23 var_dump(array_diff($arr1, $arr2));
24 var_dump(array_diff($arr2, $arr1));
29 var_dump(array_diff($arr1, $arr2));
30 var_dump(array_diff($arr2, $arr1));
35 var_dump(array_diff($arr1, $arr2));
36 var_dump(array_diff($arr2, $arr1));
[all …]
H A Darray_diff_basic.phpt2 Test array_diff() function : basic functionality
6 * Test basic functionality of array_diff
9 echo "*** Testing array_diff() : basic functionality ***\n";
16 var_dump(array_diff($array_int1, $array_int2));
17 var_dump(array_diff($array_int2, $array_int1));
25 var_dump(array_diff($array_string1, $array_string2));
26 var_dump(array_diff($array_string2, $array_string1));
33 var_dump(array_diff($array_assoc_int1, $array_assoc_int2));
34 var_dump(array_diff($array_assoc_int2, $array_assoc_int1));
50 *** Testing array_diff() : basic functionality ***
[all …]
H A Darray_diff_variation10.phpt2 Test array_diff() function : usage variations - binary safe checking
6 * Test behaviour of array_diff() function with binary input
9 echo "*** Testing array_diff() : usage variations ***\n";
23 var_dump(array_diff($array1, $array2));
24 var_dump(array_diff($array2, $array1));
29 *** Testing array_diff() : usage variations ***
H A Darray_diff_variation9.phpt2 Test array_diff() function : usage variations - multidimensional arrays
6 * Test how array_diff() compares multidimensional arrays
9 echo "*** Testing array_diff() : usage variations ***\n";
17 var_dump(array_diff($array1, $array2));
18 var_dump(array_diff($array2, $array1));
21 var_dump(array_diff($array1['sub_array1'], $array2['sub_arraya']));
22 var_dump(array_diff($array2['sub_arraya'], $array1['sub_array1']));
24 var_dump(array_diff($array1['sub_array2'], $array2['sub_arrayb']));
28 var_dump(array_diff($array1['sub_array1'], $array2));
29 var_dump(array_diff($array1, $array2['sub_arraya']));
[all …]
H A Darray_diff_variation6.phpt2 Test array_diff() function : usage variations - array containing duplicate keys and values
6 * Test that array_diff behaves as expected for comparing:
12 echo "*** Testing array_diff() : usage variations ***\n";
21 var_dump(array_diff($array_index, $array_assoc));
22 var_dump(array_diff($array_assoc, $array_index));
27 *** Testing array_diff() : usage variations ***
H A Darray_diff_1.phpt2 Test array_diff when non-array is passed
10 array_diff($a, $b, $c);
18 array_diff(): Argument #2 must be of type array, int given
H A Darray_diff_variation4.phpt2 Test array_diff() function : usage variations - array with different data types as values
6 * Test how array_diff() compares indexed arrays containing different
10 echo "*** Testing array_diff() : usage variations ***\n";
94 var_dump( array_diff($array, $value) );
101 *** Testing array_diff() : usage variations ***
H A Darray_diff_variation3.phpt2 Test array_diff() function : usage variations - array with different data types as values
6 * Test how array_diff() compares indexed arrays containing different
10 echo "*** Testing array_diff() : usage variations ***\n";
94 var_dump( array_diff($value, $array) );
101 *** Testing array_diff() : usage variations ***
H A Darray_diff_variation8.phpt2 Test array_diff() function : usage variations - associative arrays containing different data types
6 * Test array_diff() with associative arrays containing different data types as values
9 echo "*** Testing array_diff() : usage variations ***\n";
56 var_dump( array_diff($array, $input) );
57 var_dump( array_diff($input, $array) );
66 *** Testing array_diff() : usage variations ***
H A Darray_diff_single_array.phpt2 array_diff() with single array argument
8 var_dump(array_diff($array));
H A Dbug29253.phpt2 Bug #29253 (array_diff with $GLOBALS argument fails)
H A D007.phpt2 Test array_diff and array_diff_assoc behaviour
11 var_dump(array_diff($a,$b,$c));
48 var_dump(array_diff($a,$b,$c));
85 var_dump(array_diff($a,$b,$c));
H A Darray_shuffle_basic.phpt31 echo "this should be 0->...." . count(array_diff($arr1, $arr2)) . "\n";
/PHP-8.2/Zend/tests/function_arguments/
H A Dargument_count_incorrect_internal_strict.phpt14 array_diff();
24 array_diff() expects at least 1 argument, 0 given
/PHP-8.2/ext/random/tests/03_randomizer/methods/
H A DpickArrayKeys.phpt48 if (array_diff($result, array_keys($array1)) !== []) {
58 if (array_diff($result, array_keys($array2)) !== []) {
68 if (array_diff($result, array_keys($array3)) !== []) {
/PHP-8.2/ext/standard/tests/file/
H A Dstatcache-corruption.phpt8 print_r(array_diff($a, $b));
/PHP-8.2/ext/standard/tests/general_functions/
H A Dbug79254.phpt12 var_dump(array_diff($new, $old));
H A Dget_defined_constants_basic.phpt12 var_dump(array_diff($arr1, $arr2));
/PHP-8.2/ext/dba/tests/
H A Dskipif.inc8 … $handlers = array_diff($handlers, array('cdb', 'cdb_make')); /* these can only read OR write */
/PHP-8.2/ext/zip/tests/
H A Dbug7658.phpt44 $ar = array_diff($found, $expect);
/PHP-8.2/ext/openssl/tests/
H A Decc.phpt77 var_dump(array_diff($d1["ec"], $pubkey1["ec"]));
/PHP-8.2/ext/mysqli/tests/
H A Dmysqli_debug_mysqlnd_control_string.phpt143 $tmp = array_diff($functions_all_funcs, $functions_trace);

Completed in 30 milliseconds

12