how to merge an array into array of array code example Example: php combine values of two arrays $all_arrays = array_merge($array1, $array2, $array3, ...);