fork download
  1. <?php
  2.  
  3. $arr = array(
  4. array("0000000009999999","20181209","000000","REM BASICA","0.00","C"),
  5. array("0000000009999999","20181209","000000","CRED JUROS","0.02","C")
  6. );
  7.  
  8.  
  9.  
  10. $chaves = array('Conta', 'Data', 'Cod', 'Historico', 'Valor', 'Op');
  11.  
  12. $novo = array();
  13.  
  14. foreach($arr as $item){
  15. $novo[] = array_combine($chaves, $item);
  16. }
  17.  
  18. print_r($novo);
  19.  
Success #stdin #stdout 0s 82560KB
stdin
Standard input is empty
stdout
Array
(
    [0] => Array
        (
            [Conta] => 0000000009999999
            [Data] => 20181209
            [Cod] => 000000
            [Historico] => REM BASICA
            [Valor] => 0.00
            [Op] => C
        )

    [1] => Array
        (
            [Conta] => 0000000009999999
            [Data] => 20181209
            [Cod] => 000000
            [Historico] => CRED JUROS
            [Valor] => 0.02
            [Op] => C
        )

)