getid3_lib::array_merge_clobber

Advertisement

Syntax Syntax

getid3_lib::array_merge_clobber( array $array1, array $array2 )

Parameters Parameters

$array1

(Required)

$array2

(Required)

Return Return

(array|false)

Source Source

File: wp-includes/ID3/getid3.lib.php

		if (!is_array($array1) || !is_array($array2)) {
			return false;
		}
		$newarray = $array1;
		foreach ($array2 as $key => $val) {
			if (is_array($val) && isset($newarray[$key]) && is_array($newarray[$key])) {
				$newarray[$key] = self::array_merge_clobber($newarray[$key], $val);
			} else {
				$newarray[$key] = $val;
			}
		}
		return $newarray;
	}

	/**
	 * @param mixed $array1

Advertisement

Advertisement

Leave a Reply