PHP array_replace vs array_merge

If you got here, you are probably wondering what is the difference between array_replace() andarray_merge().

I’ll start with the syntax:

array_replace( &$array, &$array [, array &$ …]);

array array_replace( $array [, array &$ …]);

 

And here is the description for each of them (the descriptions are in the same order as written in the syntax section): 继续阅读“PHP array_replace vs array_merge”