|
array_replaceReplaces elements from passed arrays into the first array Description
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. Parameters
Return Values
Returns an array, or Examples
Example #1 array_replace example
<?phpThe above example will output:
Array
(
[0] => grape
[1] => banana
[2] => apple
[3] => raspberry
[4] => cherry
)
See Also
|