Merge

To merge is the action of combining two things into one. There are usually two meaning associated with PHP code:

  • merging arrays, with the eponymous function array_merge(), or the + operator

  • code merge, using a VCS, such as git, svn, etc.

<?php

    $array1 = [1,2];
    $array2 = [3,4];

    array_merge($array1, $array2); // [1,2,3,4]
    $array1 + $array2;             // [1,2,3,4]

?>

Related : array_merge(), VCS, VCS Commit