I have two arrays ($indexes and $values), where the values in $indexes represent the keys I want to use in a new array, and $values represent the values. How would I merge these two arrays into this new array??
Example:
$indexes = Array
(
[0] => Index1
[1] => Index2
)
$values = Array
(
[0] => Value1
[1] => Value2
)
I want these two arrays to merge into this:
$result = Array
(
[Index1] => Value1
[Index2] => Value2
)
Any cool one-liners for this, or do I have to manually step through the keys and the values for each array??