fork(2) download
  1. <?php
  2. $input = array('INPUT_1'=>array(74,69),'INPUT_2'=>array(45,1));
  3. print_r($input);
  4.  
  5. $a = array();
  6. $b = array();
  7. foreach($input as $key => $in){
  8. $a[$key] = $in[0];
  9. $b[$key] = $in[1];
  10. }
  11. print_r($a);
  12. print_r($b);
Success #stdin #stdout 0.01s 82880KB
stdin
Standard input is empty
stdout
Array
(
    [INPUT_1] => Array
        (
            [0] => 74
            [1] => 69
        )

    [INPUT_2] => Array
        (
            [0] => 45
            [1] => 1
        )

)
Array
(
    [INPUT_1] => 74
    [INPUT_2] => 45
)
Array
(
    [INPUT_1] => 69
    [INPUT_2] => 1
)