In the main array
, I have:
$array=array('index1'=>'value1', 'index2'=>'value2' , ....);
In another array, I keep the key=>index
relationship:
$map=array('key1'=>'index1', 'key2'=>'index2' , ...);
Is there any simple way to combile these two array into one to get:
$combine=array('key1'=>'value1', 'key2'=>'value2', ...);
that is values from main array and keys comes from the map array.