fork download
  1. <?php
  2.  
  3.  
  4. $tamanhos = array('p', 'm', 'g');
  5. $valor = array('10', '20', '30');
  6. $result = array_combine($tamanhos, $valor);
  7.  
  8. print_r($result);
Success #stdin #stdout 0.01s 82560KB
stdin
Standard input is empty
stdout
Array
(
    [p] => 10
    [m] => 20
    [g] => 30
)