combine get key and value array in php code example
Example 1: php combine arrays
$output = array_merge($array1, $array2);
Example 2: php combine values of two arrays
$all_arrays = array_merge($array1, $array2, $array3, ...);
$output = array_merge($array1, $array2);
$all_arrays = array_merge($array1, $array2, $array3, ...);