WordPress at a glance
function is not described

wc_array_overlay() WC 1.0

Merge two arrays.

No Hooks.

Return

Array. Nothing.

Usage

wc_array_overlay( $a1, $a2 );
$a1(array) (required)
First array to merge.
$a2(array) (required)
Second array to merge.

Code of wc_array_overlay() WC 5.2.2

<?php
function wc_array_overlay( $a1, $a2 ) {
	foreach ( $a1 as $k => $v ) {
		if ( ! array_key_exists( $k, $a2 ) ) {
			continue;
		}
		if ( is_array( $v ) && is_array( $a2[ $k ] ) ) {
			$a1[ $k ] = wc_array_overlay( $v, $a2[ $k ] );
		} else {
			$a1[ $k ] = $a2[ $k ];
		}
	}
	return $a1;
}