Possible Duplicate:
Merging PHP array, one as Keys the other as Values?
i have an array of keys, and i have an array of values..how to make the values of arrray A, as the “keys” of the values of array B ?
array A
[0] => 224
[1] => 77
[2] => 78
[3] => 79
[4] => 80
[5] => 81
[6] => 82
[7] => 76
)
1
array B
Array
(
[0] => Men Shoes
[1] => Fashion Accessories
[2] => Men Apparels
[3] => Shoes & Belts
[4] => Watches & Clocks
[5] => Women Apparels
[6] => Others
[7] => Bags
what i want to happen is make it like this
array(
[224] => Men Shoes
[77] => Fashion Accessories
[78] => Men Apparells
[79] => Shoes & Belts
[80] => Watches & clocks
[81] => Women Apparels
[82] => Others
[76] => Bags
)
You can use array_combine()