I want to push new array to another array at specific position for this purpose I used array_splice followed some stackoverflow links but it didn't work for me
I refered this links also but they mentioned only for single value not array.
How to insert element into arrays at specific position?
Insert new item in array on any position in PHP
Example:
$array_1 = array(1,2,3,4,5);
$array_2 = array(a,b,c);
Now I want to push $array_2 values in $array_1 at certain position like:
a at position 1
b at position 3
c at position 4
Expected output:
$final_array=(1,a,2,b,c,3,4,5);