Here is the answer of the question: Create an associative array using $array1 as the keys and $array2 as the values:
- $array3 = array_merge($array1, $array2);
- $array3 = array_union($array1, $array2);
- $array3 = array_keys($array1, $array2);
- $array3 = array_combine($array1, $array2);
The above question is related to “LinkedIn PHP Skill Quiz“. You can find all the updated questions and answers related to to “LinkedIn PHP Skill Quiz” on the “LinkedIn PHP Skill Quiz” page. If you find the update in question or answers, do comment on this page and let us know. We will update the answers as soon as possible.
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.