merge two arrays one as key to another php
snippet in php

php combine arrays

user6012

$output = array_merge($array1, $array2);

merge two arrays one as key to another php

user6226

// two arrays one become keys and second becomes values
array_combine ( array $keys , array $values );

php combine values of two arrays

user1054

$all_arrays = array_merge($array1, $array2, $array3, ...);