Home
last modified time | relevance | path

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

12

/PHP-7.3/ext/standard/tests/array/
H A Darray_diff_error.phpt2 Test array_diff() function : error conditions - too few arguments passed to function
5 /* Prototype : array array_diff(array $arr1, array $arr2 [, array ...])
12 * Test array_diff with less than the expected number of arguments
15 echo "*** Testing array_diff() : error conditions ***\n";
17 echo "\n-- Testing array_diff() function with zero arguments --\n";
18 var_dump( array_diff() );
21 // Testing array_diff with one less than the expected number of arguments
24 var_dump( array_diff($arr1) );
29 *** Testing array_diff() : error conditions ***
31 -- Testing array_diff() function with zero arguments --
[all …]
H A Darray_diff_variation5.phpt24 var_dump(array_diff($arr_int, $arr_float));
25 var_dump(array_diff($arr_float, $arr_int));
29 var_dump(array_diff($arr_int, $arr_int_str));
30 var_dump(array_diff($arr_int_str, $arr_int));
33 var_dump(array_diff($arr_int, $arr_float_str));
34 var_dump(array_diff($arr_float_str, $arr_int));
38 var_dump(array_diff($arr_float, $arr_int_str));
39 var_dump(array_diff($arr_int_str, $arr_float));
42 var_dump(array_diff($arr_float, $arr_float_str));
43 var_dump(array_diff($arr_float_str, $arr_float));
[all …]
H A Darray_diff_variation7.phpt12 * Test how array_diff compares arrays that
17 echo "*** Testing array_diff() : usage variations ***\n";
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));
41 var_dump(array_diff($arr1, $arr2));
42 var_dump(array_diff($arr2, $arr1));
[all …]
H A Darray_diff_variation1.phpt2 Test array_diff() function : usage variations - unexpected values for 'arr1' argument
5 /* Prototype : array array_diff(array $arr1, array $arr2 [, array ...])
12 * Test array_diff by passing non array values in place of $arr1
15 echo "*** Testing array_diff() : usage variations ***\n";
91 // loop through each element of $inputs to check the behavior of array_diff
95 var_dump( array_diff($input, $array));
103 *** Testing array_diff() : usage variations ***
106 Warning: array_diff(): Expected parameter 1 to be an array, int given in %s on line %d
110 Warning: array_diff(): Expected parameter 1 to be an array, int given in %s on line %d
114 Warning: array_diff(): Expected parameter 1 to be an array, int given in %s on line %d
[all …]
H A Darray_diff_variation2.phpt2 Test array_diff() function : usage variations - unexpected values for 'arr2' argument
5 /* Prototype : array array_diff(array $arr1, array $arr2 [, array ...])
12 * Test array_diff by passing non array values in place of $arr2
15 echo "*** Testing array_diff() : usage variations ***\n";
91 // loop through each element of $inputs to check the behavior of array_diff
95 var_dump( array_diff($array, $input));
102 *** Testing array_diff() : usage variations ***
105 Warning: array_diff(): Expected parameter 2 to be an array, int given in %s on line %d
109 Warning: array_diff(): Expected parameter 2 to be an array, int given in %s on line %d
113 Warning: array_diff(): Expected parameter 2 to be an array, int given in %s on line %d
[all …]
H A Darray_diff_variation9.phpt2 Test array_diff() function : usage variations - multidimensional arrays
7 /* Prototype : array array_diff(array $arr1, array $arr2 [, array ...])
14 * Test how array_diff() compares multidimensional arrays
17 echo "*** Testing array_diff() : usage variations ***\n";
25 var_dump(array_diff($array1, $array2));
26 var_dump(array_diff($array2, $array1));
29 var_dump(array_diff($array1['sub_array1'], $array2['sub_arraya']));
30 var_dump(array_diff($array2['sub_arraya'], $array1['sub_array1']));
36 var_dump(array_diff($array1['sub_array1'], $array2));
37 var_dump(array_diff($array1, $array2['sub_arraya']));
[all …]
H A Darray_diff_basic.phpt2 Test array_diff() function : basic functionality
12 * Test basic functionality of array_diff
15 echo "*** Testing array_diff() : basic functionality ***\n";
22 var_dump(array_diff($array_int1, $array_int2));
23 var_dump(array_diff($array_int2, $array_int1));
31 var_dump(array_diff($array_string1, $array_string2));
32 var_dump(array_diff($array_string2, $array_string1));
39 var_dump(array_diff($array_assoc_int1, $array_assoc_int2));
50 echo "-- Test array_diff with more than 2 arguments --\n";
56 *** Testing array_diff() : basic functionality ***
[all …]
H A Darray_diff_variation10.phpt2 Test array_diff() function : usage variations - binary safe checking
5 /* Prototype : array array_diff(array $arr1, array $arr2 [, array ...])
12 * Test behaviour of array_diff() function with binary input
15 echo "*** Testing array_diff() : usage variations ***\n";
29 var_dump(array_diff($array1, $array2));
30 var_dump(array_diff($array2, $array1));
35 *** Testing array_diff() : usage variations ***
H A Darray_diff_variation6.phpt2 Test array_diff() function : usage variations - array containing duplicate keys and values
5 /* Prototype : array array_diff(array $arr1, array $arr2 [, array ...])
12 * Test that array_diff behaves as expected for comparing:
18 echo "*** Testing array_diff() : usage variations ***\n";
27 var_dump(array_diff($array_index, $array_assoc));
28 var_dump(array_diff($array_assoc, $array_index));
33 *** Testing array_diff() : usage variations ***
H A Darray_diff_1.phpt2 Test array_diff when non-array is passed
9 array_diff($a, $b, $c);
14 Warning: array_diff(): Expected parameter 2 to be an array, int given in %s
H A Darray_diff_variation4.phpt2 Test array_diff() function : usage variations - array with different data types as values
5 /* Prototype : array array_diff(array $arr1, array $arr2 [, array ...])
12 * Test how array_diff() compares indexed arrays containing different
16 echo "*** Testing array_diff() : usage variations ***\n";
100 var_dump( array_diff($array, $value) );
107 *** Testing array_diff() : usage variations ***
H A Darray_diff_variation3.phpt2 Test array_diff() function : usage variations - array with different data types as values
5 /* Prototype : array array_diff(array $arr1, array $arr2 [, array ...])
12 * Test how array_diff() compares indexed arrays containing different
16 echo "*** Testing array_diff() : usage variations ***\n";
100 var_dump( array_diff($value, $array) );
107 *** Testing array_diff() : usage variations ***
H A Darray_diff_variation8.phpt2 Test array_diff() function : usage variations - associative arrays contianing different data types
5 /* Prototype : array array_diff(array $arr1, array $arr2 [, array ...])
12 * Test array_diff() with associative arrays containing different data types as values
15 echo "*** Testing array_diff() : usage variations ***\n";
62 var_dump( array_diff($array, $input) );
63 var_dump( array_diff($input, $array) );
72 *** Testing array_diff() : usage variations ***
H A Dbug29253.phpt2 Bug #29253 (array_diff with $GLOBALS argument fails)
H A Darray_reverse_error.phpt17 echo "\n-- Testing array_diff() function with more than expected no. of arguments --\n";
33 -- Testing array_diff() function with more than expected no. of arguments --
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_diff_assoc_error.phpt12 * Test errors for array_diff with too few\zero arguments
/PHP-7.3/Zend/tests/function_arguments/
H A Dargument_count_incorrect_internal.phpt6 array_diff([]);
10 Warning: array_diff(): at least 2 parameters are required, 1 given in %s
H A Dargument_count_incorrect_internal_strict.phpt13 array_diff([]);
18 Warning: array_diff(): at least 2 parameters are required, 1 given in %s
/PHP-7.3/ext/spl/examples/
H A Dclass_tree.php88 $interfaces = array_diff(class_implements($result), class_implements($parent));
96 $interfaces = array_diff($interfaces, $implements);
/PHP-7.3/ext/standard/tests/file/
H A Dstatcache-corruption.phpt8 print_r(array_diff($a, $b));
/PHP-7.3/ext/standard/tests/general_functions/
H A Dbug79254.phpt12 var_dump(array_diff($new, $old));
H A Dget_defined_constants_basic.phpt17 var_dump(array_diff($arr1, $arr2));
/PHP-7.3/ext/dba/tests/
H A Dskipif.inc10 $handlers = array_diff($handlers, array('cdb', 'cdb_make')); /* these can only read OR write */
/PHP-7.3/ext/zip/tests/
H A Dbug7658.phpt46 $ar = array_diff($found, $expect);

Completed in 25 milliseconds

12