array_intersect_uassoc 追加された添字の確認も含め、コールバック関数を用いて 配列の共通項を確認する &reftitle.description; arrayarray_intersect_uassoc arrayarray arrayarrays callablekey_compare_func array_intersect_uassoc は、全ての引数に現れる array の全ての値を含む配列を返します。 array_intersect と異なり、 キーが比較に使用されることに注意してください。 &reftitle.parameters; array 比較元となる最初の配列。 arrays キーを比較する対象となる配列。 key_compare_func &sort.callback.description; &reftitle.returnvalues; array の値のうち、 すべての引数に存在するもののみを返します。 &reftitle.examples; <function>array_intersect_uassoc</function> の例 "green", "b" => "brown", "c" => "blue", "red"); $array2 = array("a" => "GREEN", "B" => "brown", "yellow", "red"); print_r(array_intersect_uassoc($array1, $array2, "strcasecmp")); ?> ]]> &example.outputs; brown ) ]]> &reftitle.seealso; array_intersect array_intersect_assoc array_uintersect_assoc array_uintersect_uassoc array_intersect_key array_intersect_ukey