Lines Matching refs:array_intersect
2 Test array_intersect() function : usage variations - unexpected values for 'array1' argument
6 * Testing array_intersect() function by passing values to $array1 argument other than arrays
11 echo "*** Testing array_intersect() : Passing non-array values to \$array1 argument ***\n";
87 // loop through each sub-array within $arrays to check the behavior of array_intersect()
92 // 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) );
114 *** Testing array_intersect() : Passing non-array values to $array1 argument ***
116 -- Iterator 1 --array_intersect(): Argument #1 ($array) must be of type array, int given
117 array_intersect(): Argument #1 ($array) must be of type array, int given
119 -- Iterator 2 --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
122 -- Iterator 3 --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
125 -- Iterator 4 --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
128 -- Iterator 5 --array_intersect(): Argument #1 ($array) must be of type array, float given
129 array_intersect(): Argument #1 ($array) must be of type array, float given
131 -- Iterator 6 --array_intersect(): Argument #1 ($array) must be of type array, float given
132 array_intersect(): Argument #1 ($array) must be of type array, float given
134 -- Iterator 7 --array_intersect(): Argument #1 ($array) must be of type array, float given
135 array_intersect(): Argument #1 ($array) must be of type array, float given
137 -- Iterator 8 --array_intersect(): Argument #1 ($array) must be of type array, float given
138 array_intersect(): Argument #1 ($array) must be of type array, float given
140 -- Iterator 9 --array_intersect(): Argument #1 ($array) must be of type array, float given
141 array_intersect(): Argument #1 ($array) must be of type array, float given
143 -- Iterator 10 --array_intersect(): Argument #1 ($array) must be of type array, null given
144 array_intersect(): Argument #1 ($array) must be of type array, null given
146 -- Iterator 11 --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
149 -- Iterator 12 --array_intersect(): Argument #1 ($array) must be of type array, true given
150 array_intersect(): Argument #1 ($array) must be of type array, true given
152 -- Iterator 13 --array_intersect(): Argument #1 ($array) must be of type array, false given
153 array_intersect(): Argument #1 ($array) must be of type array, false given
155 -- Iterator 14 --array_intersect(): Argument #1 ($array) must be of type array, true given
156 array_intersect(): Argument #1 ($array) must be of type array, true given
158 -- Iterator 15 --array_intersect(): Argument #1 ($array) must be of type array, false given
159 array_intersect(): Argument #1 ($array) must be of type array, false given
161 -- Iterator 16 --array_intersect(): Argument #1 ($array) must be of type array, string given
162 array_intersect(): Argument #1 ($array) must be of type array, string given
164 -- Iterator 17 --array_intersect(): Argument #1 ($array) must be of type array, string given
165 array_intersect(): Argument #1 ($array) must be of type array, string given
167 -- Iterator 18 --array_intersect(): Argument #1 ($array) must be of type array, string given
168 array_intersect(): Argument #1 ($array) must be of type array, string given
170 -- Iterator 19 --array_intersect(): Argument #1 ($array) must be of type array, string given
171 array_intersect(): Argument #1 ($array) must be of type array, string given
173 -- Iterator 20 --array_intersect(): Argument #1 ($array) must be of type array, string given
174 array_intersect(): Argument #1 ($array) must be of type array, string given
176 -- Iterator 21 --array_intersect(): Argument #1 ($array) must be of type array, classA given
177 array_intersect(): Argument #1 ($array) must be of type array, classA given
179 -- Iterator 22 --array_intersect(): Argument #1 ($array) must be of type array, null given
180 array_intersect(): Argument #1 ($array) must be of type array, null given
182 -- Iterator 23 --array_intersect(): Argument #1 ($array) must be of type array, null given
183 array_intersect(): Argument #1 ($array) must be of type array, null given
185 -- Iterator 24 --array_intersect(): Argument #1 ($array) must be of type array, resource given
186 array_intersect(): Argument #1 ($array) must be of type array, resource given