Source Code:
(back to article)
<?php $array1 = array('a' => 'Apple', 'b' => 'Banana', 'c' => 'Cherry'); $array2 = array('b' => 'banana', 'c' => 'cherry', 'd' => 'Dates'); $array3 = array('a' => 'apple', 'c' => 'cherry', 'e' => 'elderberry'); $result = array_uintersect_assoc($array1, $array2, $array3, "strcasecmp"); print_r($result); ?>
Result:
Report an issue