WordPress at Your Fingertips
function is not described

SimplePie_Misc::array_merge_recursive() public WP 1.0

{} It's a method of the class: SimplePie_Misc{}

No Hooks.

Return

null. Nothing.

Usage

$result = SimplePie_Misc::array_merge_recursive( $array1, $array2 );
$array1 (required)
-
$array2 (required)
-

Code of SimplePie_Misc::array_merge_recursive() WP 5.8.2

public static function array_merge_recursive($array1, $array2)
{
	foreach ($array2 as $key => $value)
	{
		if (is_array($value))
		{
			$array1[$key] = SimplePie_Misc::array_merge_recursive($array1[$key], $value);
		}
		else
		{
			$array1[$key] = $value;
		}
	}

	return $array1;
}