2 /* Prototype : array array_diff_assoc(array $arr1, array $arr2 [, array ...])
3 * Description: Returns the entries of arr1 that have values which are not present
4 * in any of the others arguments but do additional checks whether the keys are equal
5 * Source code: ext/standard/array.c
9 * Test how array_diff_assoc() compares indexed arrays containing different data types
12 echo "\n*** Testing array_diff_assoc() : usage variations ***\n";
14 $array = array(1, 2, 3);
16 //get an unset variable
23 public function __toString() {
24 return "Class A object";
33 //array of different data types to be passed to $arr1 argument
102 // loop through each element of $inputs to check the behavior of array_diff_assoc
104 foreach($inputs as $key => $input) {
105 echo "\n-- Iteration $iterator --\n";
106 var_dump( array_diff_assoc($input, $array));