I want to rewrite array "foo"'s numeric keys with string keys. The relation is saved in another array "bar".
$foo = array(
1 => 'foo',
2 => 'bar',
...
);
$bar = array(
1 => 'abc',
2 => 'xyz',
...
);
$result = array(
'abc' => 'foo',
'xyz' => 'bar',
...
);
What is the fastest way to achieve this result?