fork download
  1. <?php
  2.  
  3. $a = [1, 2, 3];
  4. $b = ['a', 'b', 'c'];
  5.  
  6. print_r(array_map(null, $a, $b));
  7.  
Success #stdin #stdout 0.01s 20520KB
stdin
Standard input is empty
stdout
Array
(
    [0] => Array
        (
            [0] => 1
            [1] => a
        )

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

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

)