Home
last modified time | relevance | path

Searched refs:array_intersect (Results 1 – 21 of 21) sorted by relevance

/PHP-7.4/ext/standard/tests/array/
H A Darray_intersect_error.phpt2 Test array_intersect() function : error conditions
5 /* Prototype : array array_intersect(array $arr1, array $arr2 [, array $...])
10 echo "*** Testing array_intersect() : error conditions ***\n";
12 // Testing array_intersect() with zero arguments
13 echo "\n-- Testing array_intersect() function with Zero arguments --\n";
14 var_dump( array_intersect() );
16 // Testing array_intersect() with one less than the expected number of arguments
19 var_dump( array_intersect($arr1) );
24 *** Testing array_intersect() : error conditions ***
26 -- Testing array_intersect() function with Zero arguments --
[all …]
H A Darray_intersect_variation1.phpt2 Test array_intersect() function : usage variations - unexpected values for 'arr1' argument
5 /* Prototype : array array_intersect(array $arr1, array $arr2 [, array $...])
11 * Testing array_intersect() function by passing values to $arr1 argument other than arrays
16 echo "*** Testing array_intersect() : Passing non-array values to \$arr1 argument ***\n";
92 // loop through each sub-array within $arrrays to check the behavior of array_intersect()
97 // Calling array_intersect() with default arguments
98 var_dump( array_intersect($unexpected_value,$arr2) );
100 // Calling array_intersect() with more arguments
101 var_dump( array_intersect($unexpected_value, $arr2, $arr3) );
111 *** Testing array_intersect() : Passing non-array values to $arr1 argument ***
[all …]
H A Darray_intersect_variation2.phpt2 Test array_intersect() function : usage variations - unexpected values for 'arr2' argument
5 /* Prototype : array array_intersect(array $arr1, array $arr2 [, array $...])
11 * Testing array_intersect() function by passing values to $arr2 argument other than arrays
16 echo "*** Testing array_intersect() : Passing non-array values to \$arr2 argument ***\n";
92 // loop through each sub-array within $arrrays to check the behavior of array_intersect()
97 // Calling array_intersect() with default arguments
98 var_dump( array_intersect($arr1,$unexpected_value) );
100 // Calling array_intersect() with more arguments
101 var_dump( array_intersect($arr1, $unexpected_value, $arr3) );
112 *** Testing array_intersect() : Passing non-array values to $arr2 argument ***
[all …]
H A Darray_intersect_basic.phpt2 Test array_intersect() function : basic functionality
5 /* Prototype : array array_intersect(array $arr1, array $arr2 [, array $...])
11 * Testing the behavior of array_intersect() by passing different arrays for the arguments.
15 echo "*** Testing array_intersect() : basic functionality ***\n";
24 var_dump( array_intersect($arr_default_keys, $arr_default_keys) );
27 var_dump( array_intersect($arr_default_keys, $arr_associative) );
30 var_dump( array_intersect($arr_associative, $arr_default_keys) );
33 var_dump( array_intersect($arr_associative, $arr_associative) );
37 var_dump( array_intersect($arr_default_keys, $arr_associative, $arr3) );
38 var_dump( array_intersect($arr_associative, $arr_default_keys, $arr3, $arr_associative) );
[all …]
H A Darray_intersect_variation10.phpt2 Test array_intersect() function : usage variations - binary safe checking
5 /* Prototype : array array_intersect(array $arr1, array $arr2 [, array $...])
11 * Testing the behavior of array_intersect() by passing array with
15 echo "*** Testing array_intersect() : binary safe checking ***\n";
23 var_dump( array_intersect($arr_binary, $arr_normal) );
26 var_dump( array_intersect($arr_normal, $arr_binary) );
29 var_dump( array_intersect($arr_binary, $arr_binary) );
34 *** Testing array_intersect() : binary safe checking ***
H A D008.phpt14 echo 'array_intersect($a,$b,$c);'."\n";
15 var_dump(array_intersect($a,$b,$c));
20 echo 'array_intersect($a,$b);'."\n";
21 var_dump(array_intersect($a,$b));
73 var_dump(array_intersect($a,$b,$c));
78 echo 'array_intersect($a,$b);'."\n";
79 var_dump(array_intersect($a,$b));
141 array_intersect($a,$b,$c);
155 array_intersect($a,$b);
253 array_intersect($a,$b,$c);
[all …]
H A Darray_intersect_variation6.phpt2 Test array_intersect() function : usage variations - assoc array with diff keys for 'arr2' argument
5 /* Prototype : array array_intersect(array $arr1, array $arr2 [, array $...])
11 * Testing the functionality of array_intersect() by passing different
16 echo "*** Testing array_intersect() : assoc array with diff keys to \$arr2 argument ***\n";
63 // loop through each sub-array within $arrrays to check the behavior of array_intersect()
68 // Calling array_intersect() with default arguments
69 var_dump( array_intersect($arr1, $arr2) );
71 // Calling array_intersect() with more arguments.
73 var_dump( array_intersect($arr1, $arr2, $arr1) );
80 *** Testing array_intersect() : assoc array with diff keys to $arr2 argument ***
H A Darray_intersect_variation5.phpt2 Test array_intersect() function : usage variations - assoc array with diff keys for 'arr1' argument
5 /* Prototype : array array_intersect(array $arr1, array $arr2 [, array $...])
11 * Testing the functionality of array_intersect() by passing different
16 echo "*** Testing array_intersect() : assoc array with diff keys to \$arr1 argument ***\n";
63 // loop through each sub-array within $arrrays to check the behavior of array_intersect()
68 // Calling array_intersect() with default arguments
69 var_dump( array_intersect($arr1, $arr2) );
71 // Calling array_intersect() with more arguments.
73 var_dump( array_intersect($arr1, $arr2, $arr1) );
80 *** Testing array_intersect() : assoc array with diff keys to $arr1 argument ***
H A Darray_intersect_variation7.phpt2 Test array_intersect() function : usage variations - assoc array with diff values for 'arr1' argume…
5 /* Prototype : array array_intersect(array $arr1, array $arr2 [, array $...])
11 * Testing the functionality of array_intersect() by passing different
16 echo "*** Testing array_intersect() : assoc array with diff values to \$arr1 argument ***\n";
71 // loop through each sub-array within $arrrays to check the behavior of array_intersect()
76 // Calling array_intersect() with default arguments
77 var_dump( array_intersect($arr1, $arr2) );
79 // Calling array_intersect() with more arguments.
81 var_dump( array_intersect($arr1, $arr2, $arr1) );
91 *** Testing array_intersect() : assoc array with diff values to $arr1 argument ***
H A Darray_intersect_variation8.phpt2 Test array_intersect() function : usage variations - assoc array with diff values for 'arr2' argume…
5 /* Prototype : array array_intersect(array $arr1, array $arr2 [, array $...])
11 * Testing the functionality of array_intersect() by passing different
16 echo "*** Testing array_intersect() : assoc array with diff values to \$arr2 argument ***\n";
71 // loop through each sub-array within $arrrays to check the behavior of array_intersect()
76 // Calling array_intersect() with default arguments
77 var_dump( array_intersect($arr1, $arr2) );
79 // Calling array_intersect() with more arguments.
81 var_dump( array_intersect($arr1, $arr2, $arr1) );
91 *** Testing array_intersect() : assoc array with diff values to $arr2 argument ***
H A Darray_intersect_variation9.phpt2 Test array_intersect() function : usage variations - two dimensional arrays for $arr1 and $arr2 arg…
5 /* Prototype : array array_intersect(array $arr1, array $arr2 [, array $...])
11 * Testing the behavior of array_intersect() by passing 2-D arrays
36 // Calling array_intersect() with default arguments
39 var_dump( array_intersect($arr1, $arr2) );
41 // Calling array_intersect() with more arguments
44 var_dump( array_intersect($arr1, $arr2, $arr1) );
47 // Calling array_intersect() with default arguments
50 var_dump( array_intersect($arr1[0], $arr2[0]) );
52 // Calling array_intersect() with more arguments
[all …]
H A Darray_intersect_variation3.phpt2 Test array_intersect() function : usage variations - different arrays for 'arr1' argument
5 /* Prototype : array array_intersect(array $arr1, array $arr2 [, array $...])
12 * array_intersect() behaves in expected way with the other arguments passed to the function
16 echo "*** Testing array_intersect() : Passing different types of arrays to \$arr1 argument ***\n";
87 // loop through each sub-array within $arrrays to check the behavior of array_intersect()
92 // Calling array_intersect() with default arguments
93 var_dump( array_intersect($arr1, $arr2) );
95 // Calling array_intersect() with more arguments.
97 var_dump( array_intersect($arr1, $arr2, $arr1) );
104 *** Testing array_intersect() : Passing different types of arrays to $arr1 argument ***
H A Darray_intersect_variation4.phpt2 Test array_intersect() function : usage variations - different arrays for 'arr2' argument
5 /* Prototype : array array_intersect(array $arr1, array $arr2 [, array $...])
12 * array_intersect() behaves in expected way with the other arguments passed to the function.
16 echo "*** Testing array_intersect() : Passing different types of arrays to \$arr2 argument ***\n";
86 // loop through each sub-array within $arrrays to check the behavior of array_intersect()
91 // Calling array_intersect() with default arguments
92 var_dump( array_intersect($arr1, $arr2) );
94 // Calling array_intersect() with more arguments
96 var_dump( array_intersect($arr1, $arr2, $arr1) );
103 *** Testing array_intersect() : Passing different types of arrays to $arr2 argument ***
H A Darray_intersect_key.phpt47 echo "----- Now testing array_intersect() ------- \n";
48 var_dump(array_intersect($a, $b_f));
50 var_dump(array_intersect($a, $b, $c));
52 var_dump(array_intersect($a, $b, $c, $d));
175 ----- Now testing array_intersect() -------
H A Darray_shuffle_basic.phpt33 echo "this should be 4->...." . count(array_intersect($arr1, $arr2)) . "\n";
/PHP-7.4/Zend/tests/
H A Dbug74093.phpt17 array_intersect($a1, $a2);
/PHP-7.4/ext/intl/tests/
H A Dtimezone_createTimeZoneIDEnumeration_variant2.phpt34 array_intersect($values,
/PHP-7.4/ext/standard/
H A Dphp_array.h82 PHP_FUNCTION(array_intersect);
H A Dbasic_functions.c3379 PHP_FE(array_intersect, arginfo_array_intersect)
H A Darray.c5047 PHP_FUNCTION(array_intersect) argument
/PHP-7.4/
H A Drun-tests.php3434 $temp = array_intersect(array('XFAIL', 'XLEAK', 'FAIL', 'WARN'), $type);

Completed in 78 milliseconds