Lines Matching refs:array_intersect
2 Test array_intersect() function : usage variations - unexpected values for 'array2' argument
6 * Testing array_intersect() function by passing values to $array2 argument other than arrays
11 echo "*** Testing array_intersect() : Passing non-array values to \$array2 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($array1,$unexpected_value) );
99 // Calling array_intersect() with more arguments
101 var_dump( array_intersect($array1, $unexpected_value, $arr3) );
115 *** Testing array_intersect() : Passing non-array values to $array2 argument ***
117 -- Iterator 1 --array_intersect(): Argument #2 must be of type array, int given
118 array_intersect(): Argument #2 must be of type array, int given
120 -- Iterator 2 --array_intersect(): Argument #2 must be of type array, int given
121 array_intersect(): Argument #2 must be of type array, int given
123 -- Iterator 3 --array_intersect(): Argument #2 must be of type array, int given
124 array_intersect(): Argument #2 must be of type array, int given
126 -- Iterator 4 --array_intersect(): Argument #2 must be of type array, int given
127 array_intersect(): Argument #2 must be of type array, int given
129 -- Iterator 5 --array_intersect(): Argument #2 must be of type array, float given
130 array_intersect(): Argument #2 must be of type array, float given
132 -- Iterator 6 --array_intersect(): Argument #2 must be of type array, float given
133 array_intersect(): Argument #2 must be of type array, float given
135 -- Iterator 7 --array_intersect(): Argument #2 must be of type array, float given
136 array_intersect(): Argument #2 must be of type array, float given
138 -- Iterator 8 --array_intersect(): Argument #2 must be of type array, float given
139 array_intersect(): Argument #2 must be of type array, float given
141 -- Iterator 9 --array_intersect(): Argument #2 must be of type array, float given
142 array_intersect(): Argument #2 must be of type array, float given
144 -- Iterator 10 --array_intersect(): Argument #2 must be of type array, null given
145 array_intersect(): Argument #2 must be of type array, null given
147 -- Iterator 11 --array_intersect(): Argument #2 must be of type array, null given
148 array_intersect(): Argument #2 must be of type array, null given
150 -- Iterator 12 --array_intersect(): Argument #2 must be of type array, true given
151 array_intersect(): Argument #2 must be of type array, true given
153 -- Iterator 13 --array_intersect(): Argument #2 must be of type array, false given
154 array_intersect(): Argument #2 must be of type array, false given
156 -- Iterator 14 --array_intersect(): Argument #2 must be of type array, true given
157 array_intersect(): Argument #2 must be of type array, true given
159 -- Iterator 15 --array_intersect(): Argument #2 must be of type array, false given
160 array_intersect(): Argument #2 must be of type array, false given
162 -- Iterator 16 --array_intersect(): Argument #2 must be of type array, string given
163 array_intersect(): Argument #2 must be of type array, string given
165 -- Iterator 17 --array_intersect(): Argument #2 must be of type array, string given
166 array_intersect(): Argument #2 must be of type array, string given
168 -- Iterator 18 --array_intersect(): Argument #2 must be of type array, string given
169 array_intersect(): Argument #2 must be of type array, string given
171 -- Iterator 19 --array_intersect(): Argument #2 must be of type array, string given
172 array_intersect(): Argument #2 must be of type array, string given
174 -- Iterator 20 --array_intersect(): Argument #2 must be of type array, string given
175 array_intersect(): Argument #2 must be of type array, string given
177 -- Iterator 21 --array_intersect(): Argument #2 must be of type array, classA given
178 array_intersect(): Argument #2 must be of type array, classA given
180 -- Iterator 22 --array_intersect(): Argument #2 must be of type array, null given
181 array_intersect(): Argument #2 must be of type array, null given
183 -- Iterator 23 --array_intersect(): Argument #2 must be of type array, null given
184 array_intersect(): Argument #2 must be of type array, null given
186 -- Iterator 24 --array_intersect(): Argument #2 must be of type array, resource given
187 array_intersect(): Argument #2 must be of type array, resource given