How do you create an associative array dynamically from 2 existing arrays? I create array1 and array2 and then I want to create an associative array containing keys of array1 that refer to values of array2.
Nevermind, just figured it out.
$x=0; loop_through_array1{ $New_Assoc_Array[$array1[$x]] = $array2[$x++];
}