An array may contain values of different types, so array_merge() should work.
Both your arrays use string values though, since "23" is a string too (unlike 23 without quotes).
CharlesEF
Jan 11 2017, 06:09 PM
If you want the array in the exact order as your sample, then I think you need to write your own function. array_merge() will work if you don't mind appending the 2nd array to the end of the 1st array.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.