array_replace in PHP

Syntax of array_replace array array_replace(array array1, array array2[, … array arrayN]) Returns an array created by replacing values in array1 with values from the other arrays. Elements in array1 with keys matching in the replacement arrays are replaced with the values of those elements If multiple replacement arrays are provided, they are processed in order. … Read more