This question already has an answer here:
- How to combine two arrays together? 3 answers
i'm a lil newbie with php, someone can help me. I want to generate an associative array given two arrays like:
$array1 = ["1","2"];
$array2 = ["option_1","option_2"];
Generated associative array:
$assoc_array = ["1"=>"option_1","2"=>"option_2"];
how i can do that?? thanks for ur help !
</div>