What are some alternative methods to elegantly merge two arrays in PHP without losing the alignment of elements?

When merging two arrays in PHP using the `array_merge` function, the elements from both arrays are simply concatenated together, which may result in losing the alignment of elements. To elegantly merge two arrays without losing the alignment of elements, you can use the `array_combine` function to merge the arrays based on their keys.

$array1 = ["a", "b", "c"];
$array2 = [1, 2, 3];

$mergedArray = array_combine($array1, $array2);

print_r($mergedArray);