PHP » GoLang |
login |
register |
about
|
array_replace(PHP 5 >= 5.3.0, PHP 7) array_replace — Replaces 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
<?php The above example will output: Array ( [0] => grape [1] => banana [2] => apple [3] => raspberry [4] => cherry ) See Also
|
more
Recently updated
more
Most requested
more
Last requests
|