PHP-多维数组合

My problem was

In PHP i am having 2 multidimensional arrays. such as:

array 1:

Array                                                                                     
(
    [0] => Array
        (
            [0] => 1
            [1] => 2
            [2] => 3
        )

    [1] => Array
        (
            [0] => 1
            [1] => 2
            [2] => 3
        )

)

Array 2:

Array
(
    [0] => Array
        (
            [0] => 4
            [1] => 5
            [2] => 6
        )

    [1] => Array
        (
            [0] => 7
            [1] => 8
            [2] => 9
        )


)

am getting these two output .for that i need to combine these tow arrays.

i need first array values should be the key of resulting array second array values should be the values of resulting array...

i need the output like this format

Array
(
    [0] => Array
        (
            [1] => 4
            [2] => 5
            [3] => 6
        )

    [1] => Array
        (
            [1] => 7
            [2] => 8
            [3] => 9
        )
)

any help...

Try with:

$length = sizeof($arrayA);
$output = array();

for ( $i = 0; $i < $length; ++$i ) {
  $output[] = array_combine($arrayA[$i], $arrayB[$i]);
}