1 2 3 4 5 6 7
<?php $foo = Array(1, 2, 3, 4); $bar = Array('a', 'b', 'c', 'd'); $foobar = array_combine($foo, $bar); print $foobar[1];
1
a