내가 $에 존재하지 않는 두 개의 연관 배열다시 주문 연관 배열
에 다시 수주 목표는 키 $ 참조 순서와 일치하는 좋은 방법은 무엇$reference = array(
'type_drink' => 'value',
'type_plate' => 'value',
'type_fork' => 'value',
'non_type' => 'value'
);
$target = array(
'type_plate' => 'value other',
'type_drink' => 'value other'
);
와 키를 무시를 참조 연관 배열을 기반으로 타겟되도록 최종
$target = array(
'type_drink' => 'value other',
'type_plate' => 'value other'
);
나는'array_intersect_key ($ target, $ reference)'라고 말하려고했으나 배열을 정렬하려고했다. –