Lines Matching refs:array_diff
2 Test array_diff() function : usage variations - multidimensional arrays
5 /* Prototype : array array_diff(array $arr1, array $arr2 [, array ...])
12 * Test how array_diff() compares multidimensional arrays
15 echo "*** Testing array_diff() : usage variations ***\n";
23 var_dump(array_diff($array1, $array2));
24 var_dump(array_diff($array2, $array1));
27 var_dump(array_diff($array1['sub_array1'], $array2['sub_arraya']));
28 var_dump(array_diff($array2['sub_arraya'], $array1['sub_array1']));
30 var_dump(array_diff($array1['sub_array2'], $array2['sub_arrayb']));
31 var_dump(array_diff($array2['sub_arrayb'], $array1['sub_array1']));
34 var_dump(array_diff($array1['sub_array1'], $array2));
35 var_dump(array_diff($array1, $array2['sub_arraya']));
40 *** Testing array_diff() : usage variations ***