What function can be used to merge elements in an array in PHP?

To merge elements in an array in PHP, you can use the `array_merge()` function. This function takes two or more arrays as arguments and merges them into a single array. It appends the elements of one array to the end of the first array. This can be useful when you want to combine the elements of multiple arrays into a single array.

// Example of merging elements in an array using array_merge()
$array1 = [1, 2, 3];
$array2 = [4, 5, 6];
$mergedArray = array_merge($array1, $array2);

print_r($mergedArray);