Lines Matching refs:array_diff
2 Test array_diff() function : basic functionality
5 /* Prototype : array array_diff(array $arr1, array $arr2 [, array ...])
12 * Test basic functionality of array_diff
15 echo "*** Testing array_diff() : basic functionality ***\n";
22 var_dump(array_diff($array_int1, $array_int2));
23 var_dump(array_diff($array_int2, $array_int1));
31 var_dump(array_diff($array_string1, $array_string2));
32 var_dump(array_diff($array_string2, $array_string1));
39 var_dump(array_diff($array_assoc_int1, $array_assoc_int2));
40 var_dump(array_diff($array_assoc_int2, $array_assoc_int1));
47 var_dump(array_diff($array_assoc_str1, $array_assoc_str2));
48 var_dump(array_diff($array_assoc_str2, $array_assoc_str1));
50 echo "-- Test array_diff with more than 2 arguments --\n";
51 var_dump(array_diff($array_int1, $array_int2, $array_string1, $array_string2));
56 *** Testing array_diff() : basic functionality ***
109 -- Test array_diff with more than 2 arguments --