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