<?php
$one = array(11 => 'a', 12 => 'b', 13 => 'c');
$two = array(14 => 'd', 15 => 'e');
print_r(array_merge($one, $two));
this return me:
Array
(
[0] => a
[1] => b
[2] => c
[3] => d
[4] => e
)
i would like receive:
Array
(
[11] => a
[12] => b
[13] => c
[14] => d
[15] => e
)
How can i merge two array with indexes? Is this possible? If yes, how?
This is a possible solution.
Output
Using print_r