Hi all,
At the moment I have two arrays, e.g. -
Array_a( ‘a_key1’ => ‘a_value1’, 'a_key2 => ‘a_value2’ );
Array_b( ‘b_key1’ => ‘b_value1’, 'b_key2 => ‘b_value2’ );
I am trying to make these in to one array where the values from Array_a are the keys and the values from Array_b are the values, e.g. -
Array_c( ‘a_value1’ => ‘b_value1’, ‘a_value2’ => ‘b_value2’ );
Trouble is the only way I know to iterate through an array is by using ‘foreach’, so I’m really struggling.
Any help would be greatly appricated.
Thanks.