Hi. I'm looking for a php function that merges two arrays together and alternates the values of the array.
For example:
array_fruits =(apple, orange, grape)
array_shape = (square, triangle, circle)
I want to merge the two arrays array_fruits and array_shape such that the new array would be
array_fruits_shape = (apple, square, orange, triangle, grape, circle)
Is there a function that does this or should I just code the logic myself?
Thanks for you help,
Mike