fork download
  1. <?php
  2.  
  3. $tempero = ["Ketchup", "Mustard", "Barbecue"];
  4. $quantidade = ["1", "2", "3"];
  5. $frequencia = ["FKetchup", "FMustard", "FBarbecue"];
  6. $combo = ["CKetchup", "CMustard", "CBarbecue"];
  7.  
  8. $saida = array_map(NULL, $tempero, $quantidade, $frequencia, $combo);
  9.  
  10. print_r($saida);
Success #stdin #stdout 0.01s 82880KB
stdin
Standard input is empty
stdout
Array
(
    [0] => Array
        (
            [0] => Ketchup
            [1] => 1
            [2] => FKetchup
            [3] => CKetchup
        )

    [1] => Array
        (
            [0] => Mustard
            [1] => 2
            [2] => FMustard
            [3] => CMustard
        )

    [2] => Array
        (
            [0] => Barbecue
            [1] => 3
            [2] => FBarbecue
            [3] => CBarbecue
        )

)