Menu Samaritan's Purse

ARRAY_REPLACE_RECURSIVE

Replaces elements from passed arrays into the first array recursively

SYNTAX

array_replace_recursive ( array $array1 [, array $... ] ) : array

PARAMETERS

array1

The array in which elements are replaced.

...

Optional. Arrays from which elements will be extracted.

RETURN

Returns an array, or NULL if an error occurs.

EXAMPLES

ARRAY1

Array
(
    [0] => 0
    [1] => 1
    [2] => Array
        (
            [0] => 0
            [1] => 1
        )

)

...

Array
(
    [0] => replace
    [1] => 1
    [2] => Array
        (
            [0] => replace
            [1] => 1
        )

)

PHP