PHP array_combine() Function
The array_combine() function creates an array by using one array for keys and another for values.
Syntax
array_combine(array $keys, array $values): array
Try It Online
Output
Click Run to execute your code
Enjoying these tutorials?