The array_combine function returns an array of key value pairs from two arrays.

    
    $capitals = array('Albany', 'Austin', 'Tallahassee');
    $states = array('New York', 'Texas', 'Florida');

    $capitalsCombine = array_combine($capitals, $states);

    print_r($capitalsCombine);
    // Array
    // (
    //  [Albany] => New York
    //  [Austin] => Texas
    //  [Tallahassee] => Florida
    // )