Lines Matching refs:array_diff
2 Test array_diff() function : usage variations - multidimensional arrays
7 /* Prototype : array array_diff(array $arr1, array $arr2 [, array ...])
14 * Test how array_diff() compares multidimensional arrays
17 echo "*** Testing array_diff() : usage variations ***\n";
25 var_dump(array_diff($array1, $array2));
26 var_dump(array_diff($array2, $array1));
29 var_dump(array_diff($array1['sub_array1'], $array2['sub_arraya']));
30 var_dump(array_diff($array2['sub_arraya'], $array1['sub_array1']));
32 var_dump(array_diff($array1['sub_array2'], $array2['sub_arrayb']));
33 var_dump(array_diff($array2['sub_arrayb'], $array1['sub_array1']));
36 var_dump(array_diff($array1['sub_array1'], $array2));
37 var_dump(array_diff($array1, $array2['sub_arraya']));
42 *** Testing array_diff() : usage variations ***