update : 2015.11.03
php.shukuma.com검색:
|
array_replace_recursive(PHP 5 >= 5.3.0, PHP 7) array_replace_recursive — Replaces elements from passed arrays into the first array recursively 설명
array array_replace_recursive
( array
$array1
, array $array2
[, array $...
] )
array_replace_recursive() replaces the values of
array_replace_recursive() is recursive : it will recurse into arrays and apply the same process to the inner value.
When the value in 인수
반환값
Returns an array, or 예제
Example #1 array_replace_recursive() example
<?php 위 예제의 출력: Array ( [citrus] => Array ( [0] => pineapple ) [berries] => Array ( [0] => blueberry [1] => raspberry ) ) Array ( [citrus] => Array ( [0] => pineapple ) [berries] => Array ( [0] => blueberry ) ) Example #2 array_replace_recursive() and recursive behavior
<?php 위 예제의 출력: Array ( [citrus] => Array ( [0] => pineapple ) [berries] => Array ( [0] => blueberry [1] => raspberry ) [others] => litchis ) 참고
|