PHP array_combine() Function

Create an array by using the elements from one "keys" array and one "values" array. It creates an array by using the values from the keys array as keys and the values from the values array as the corresponding values.

Example -

Example -

Example -