I have two arrays like this
array 1
array(3) { [0]=> int(14) [1]=> int(16) [2]=> int(17) }
array 2
array(3) { [0]=> float(0.46902846738366) [1]=> float(0.40289063077504) [2]=> float(0.54903658244928) }
array 1 is an array that contains the database table id on the value of the associated array.
14, 16, 17 is the id of my database tables.
array 2 is an array that contains the results of mathematical operations that I've done. I have an array is a dynamic array.
so I want to
id 14 has a value of 0.46902846738366
,
id 16 has a value of 0.40289063077504
, and
id 17 has a value of 0.54903658244928
. then each id is stored in each of the variables themselves.
how to combine the two arrays?? thank you!