update : 2015.11.03
php.shukuma.com검색:
|
array_replace(PHP 5 >= 5.3.0, PHP 7) array_replace — Replaces elements from passed arrays into the first array 설명
array array_replace
( array
$array1
, array $array2
[, array $...
] )
array_replace() replaces the values of
array_replace() is not recursive : it will replace values in the first array by whatever type is in the second array. 인수
반환값
Returns an array, or 예제
Example #1 array_replace() example
<?php 위 예제의 출력: Array ( [0] => grape [1] => banana [2] => apple [3] => raspberry [4] => cherry ) 참고
|