Lines Matching refs:array_diff
2 Test array_diff() function : usage variations - multidimensional arrays
6 * Test how array_diff() compares multidimensional arrays
9 echo "*** Testing array_diff() : usage variations ***\n";
17 var_dump(array_diff($array1, $array2));
18 var_dump(array_diff($array2, $array1));
21 var_dump(array_diff($array1['sub_array1'], $array2['sub_arraya']));
22 var_dump(array_diff($array2['sub_arraya'], $array1['sub_array1']));
24 var_dump(array_diff($array1['sub_array2'], $array2['sub_arrayb']));
25 var_dump(array_diff($array2['sub_arrayb'], $array1['sub_array1']));
28 var_dump(array_diff($array1['sub_array1'], $array2));
29 var_dump(array_diff($array1, $array2['sub_arraya']));
34 *** Testing array_diff() : usage variations ***