Home
last modified time | relevance | path

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

/php-src/ext/standard/tests/array/
H A Darray_intersect_variation2.phpt92 // Calling array_intersect() with default arguments
94 var_dump( array_intersect($array1,$unexpected_value) );
99 // Calling array_intersect() with more arguments
118 array_intersect(): Argument #2 must be of type array, int given
121 array_intersect(): Argument #2 must be of type array, int given
124 array_intersect(): Argument #2 must be of type array, int given
127 array_intersect(): Argument #2 must be of type array, int given
145 array_intersect(): Argument #2 must be of type array, null given
148 array_intersect(): Argument #2 must be of type array, null given
151 array_intersect(): Argument #2 must be of type array, true given
[all …]
H A Darray_intersect_variation1.phpt92 // Calling array_intersect() with default arguments
94 var_dump( array_intersect($unexpected_value,$array2) );
99 // Calling array_intersect() with more arguments
101 var_dump( array_intersect($unexpected_value, $array2, $arr3) );
117 array_intersect(): Argument #1 ($array) must be of type array, int given
120 array_intersect(): Argument #1 ($array) must be of type array, int given
123 array_intersect(): Argument #1 ($array) must be of type array, int given
126 array_intersect(): Argument #1 ($array) must be of type array, int given
144 array_intersect(): Argument #1 ($array) must be of type array, null given
147 array_intersect(): Argument #1 ($array) must be of type array, null given
[all …]
H A Darray_intersect_basic.phpt2 Test array_intersect() function : basic functionality
6 * Testing the behavior of array_intersect() by passing different arrays for the arguments.
10 echo "*** Testing array_intersect() : basic functionality ***\n";
19 var_dump( array_intersect($arr_default_keys, $arr_default_keys) );
22 var_dump( array_intersect($arr_default_keys, $arr_associative) );
25 var_dump( array_intersect($arr_associative, $arr_default_keys) );
28 var_dump( array_intersect($arr_associative, $arr_associative) );
32 var_dump( array_intersect($arr_default_keys, $arr_associative, $arr3) );
33 var_dump( array_intersect($arr_associative, $arr_default_keys, $arr3, $arr_associative) );
38 *** Testing array_intersect() : basic functionality ***
H A Darray_intersect_variation10.phpt2 Test array_intersect() function : usage variations - binary safe checking
6 * Testing the behavior of array_intersect() by passing array with
10 echo "*** Testing array_intersect() : binary safe checking ***\n";
18 var_dump( array_intersect($arr_binary, $arr_normal) );
21 var_dump( array_intersect($arr_normal, $arr_binary) );
24 var_dump( array_intersect($arr_binary, $arr_binary) );
29 *** 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
6 * Testing the functionality of array_intersect() by passing different
11 echo "*** Testing array_intersect() : assoc array with diff keys to \$arr2 argument ***\n";
52 // loop through each sub-array within $arrays to check the behavior of array_intersect()
57 // Calling array_intersect() with default arguments
58 var_dump( array_intersect($arr1, $arr2) );
60 // Calling array_intersect() with more arguments.
62 var_dump( array_intersect($arr1, $arr2, $arr1) );
69 *** 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
6 * Testing the functionality of array_intersect() by passing different
11 echo "*** Testing array_intersect() : assoc array with diff keys to \$arr1 argument ***\n";
52 // loop through each sub-array within $arrays to check the behavior of array_intersect()
57 // Calling array_intersect() with default arguments
58 var_dump( array_intersect($arr1, $arr2) );
60 // Calling array_intersect() with more arguments.
62 var_dump( array_intersect($arr1, $arr2, $arr1) );
69 *** 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…
6 * Testing the functionality of array_intersect() by passing different
11 echo "*** Testing array_intersect() : assoc array with diff values to \$arr1 argument ***\n";
66 // loop through each sub-array within $arrays to check the behavior of array_intersect()
71 // Calling array_intersect() with default arguments
72 var_dump( array_intersect($arr1, $arr2) );
74 // Calling array_intersect() with more arguments.
76 var_dump( array_intersect($arr1, $arr2, $arr1) );
86 *** 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…
6 * Testing the functionality of array_intersect() by passing different
11 echo "*** Testing array_intersect() : assoc array with diff values to \$arr2 argument ***\n";
66 // loop through each sub-array within $arrays to check the behavior of array_intersect()
71 // Calling array_intersect() with default arguments
72 var_dump( array_intersect($arr1, $arr2) );
74 // Calling array_intersect() with more arguments.
76 var_dump( array_intersect($arr1, $arr2, $arr1) );
86 *** 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…
6 * Testing the behavior of array_intersect() by passing 2-D arrays
31 // Calling array_intersect() with default arguments
34 var_dump( array_intersect($arr1, $arr2) );
36 // Calling array_intersect() with more arguments
39 var_dump( array_intersect($arr1, $arr2, $arr1) );
42 // Calling array_intersect() with default arguments
45 var_dump( array_intersect($arr1[0], $arr2[0]) );
47 // Calling array_intersect() with more arguments
50 var_dump( array_intersect($arr1[0], $arr2[0], $arr1[0]) );
[all …]
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_intersect_variation3.phpt2 Test array_intersect() function : usage variations - different arrays for 'arr1' argument
7 * array_intersect() behaves in expected way with the other arguments passed to the function
11 echo "*** Testing array_intersect() : Passing different types of arrays to \$arr1 argument ***\n";
82 // loop through each sub-array within $arrays to check the behavior of array_intersect()
87 // Calling array_intersect() with default arguments
88 var_dump( array_intersect($arr1, $arr2) );
90 // Calling array_intersect() with more arguments.
92 var_dump( array_intersect($arr1, $arr2, $arr1) );
99 *** 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
7 * array_intersect() behaves in expected way with the other arguments passed to the function.
11 echo "*** Testing array_intersect() : Passing different types of arrays to \$arr2 argument ***\n";
81 // loop through each sub-array within $arrays to check the behavior of array_intersect()
86 // Calling array_intersect() with default arguments
87 var_dump( array_intersect($arr1, $arr2) );
89 // Calling array_intersect() with more arguments
91 var_dump( array_intersect($arr1, $arr2, $arr1) );
98 *** Testing array_intersect() : Passing different types of arrays to $arr2 argument ***
/php-src/Zend/tests/
H A Dbug74093.phpt17 array_intersect($a1, $a2);
/php-src/ext/intl/tests/
H A Dtimezone_createTimeZoneIDEnumeration_variant2.phpt32 array_intersect($values,
/php-src/ext/standard/tests/array/sort/
H A Darray_shuffle_basic.phpt32 echo "this should be 4->...." . count(array_intersect($arr1, $arr2)) . "\n";
/php-src/ext/standard/
H A Dbasic_functions.stub.php1776 function array_intersect(array $array, array ...$arrays): array {} function
H A Dbasic_functions_arginfo.h2363 ZEND_FUNCTION(array_intersect);
H A Darray.c5421 PHP_FUNCTION(array_intersect) argument

Completed in 77 milliseconds