Lines Matching refs:array_diff

2 Test array_diff() function : usage variations - unexpected values for 'array2' argument
6 * Test array_diff by passing non array values in place of $array2
9 echo "*** Testing array_diff() : usage variations ***\n";
85 // loop through each element of $inputs to check the behavior of array_diff
90 var_dump( array_diff($array, $input));
100 *** Testing array_diff() : usage variations ***
102 -- Iteration 1 --array_diff(): Argument #2 must be of type array, int given
104 -- Iteration 2 --array_diff(): Argument #2 must be of type array, int given
106 -- Iteration 3 --array_diff(): Argument #2 must be of type array, int given
108 -- Iteration 4 --array_diff(): Argument #2 must be of type array, int given
110 -- Iteration 5 --array_diff(): Argument #2 must be of type array, float given
112 -- Iteration 6 --array_diff(): Argument #2 must be of type array, float given
114 -- Iteration 7 --array_diff(): Argument #2 must be of type array, float given
116 -- Iteration 8 --array_diff(): Argument #2 must be of type array, float given
118 -- Iteration 9 --array_diff(): Argument #2 must be of type array, float given
120 -- Iteration 10 --array_diff(): Argument #2 must be of type array, null given
122 -- Iteration 11 --array_diff(): Argument #2 must be of type array, null given
124 -- Iteration 12 --array_diff(): Argument #2 must be of type array, true given
126 -- Iteration 13 --array_diff(): Argument #2 must be of type array, false given
128 -- Iteration 14 --array_diff(): Argument #2 must be of type array, true given
130 -- Iteration 15 --array_diff(): Argument #2 must be of type array, false given
132 -- Iteration 16 --array_diff(): Argument #2 must be of type array, string given
134 -- Iteration 17 --array_diff(): Argument #2 must be of type array, string given
136 -- Iteration 18 --array_diff(): Argument #2 must be of type array, string given
138 -- Iteration 19 --array_diff(): Argument #2 must be of type array, string given
140 -- Iteration 20 --array_diff(): Argument #2 must be of type array, string given
142 -- Iteration 21 --array_diff(): Argument #2 must be of type array, string given
144 -- Iteration 22 --array_diff(): Argument #2 must be of type array, string given
146 -- Iteration 23 --array_diff(): Argument #2 must be of type array, classA given
148 -- Iteration 24 --array_diff(): Argument #2 must be of type array, null given
150 -- Iteration 25 --array_diff(): Argument #2 must be of type array, null given
152 -- Iteration 26 --array_diff(): Argument #2 must be of type array, resource given