- array_combine: documentation ( source)
<?php
$arra = array('one', 'two', 'five', 'seven');
$arrb = array('black', 'white', 'gold', 'silver');
$result = array_combine($arra, $arrb);
foreach($result as $key=>$value){
${$key} = $value;
}
echo $two;
?>