I have 2 arrays
Say Example
A1 = [1,2,3]
A2 = [4,5,6]
The output I need is
A3 = [1,4,2,5,3,6]
i.e the output I need is first value of first array followed by first value of second array and so on
How can I achieve this in PHP
I tired some php array functions ,I didn’t get the my required result
2
Answers
Here is a way to do it (assuming that both arrays have the same size):
Maybe you can do something like this:
P.s I didn’t tested it