<?php
array("0000000009999999","20181209","000000","REM BASICA","0.00","C"), array("0000000009999999","20181209","000000","CRED JUROS","0.02","C") );
function transforme($array)
{
foreach($array as $values)
{
foreach ($values as $key => $value)
{
switch ($key) {
case 0:
$array_copy['Conta'] = $value;
break;
case 1:
$array_copy['Data'] = $value;
break;
case 2:
$array_copy['Cod'] = $value;
break;
case 3:
$array_copy['Historico'] = $value;
break;
case 4:
$array_copy['Valor'] = $value;
break;
case 5:
$array_copy['Op'] = $value;
break;
}
}
$array_new[] = $array_copy;
}
return $array_new;
}
PD9waHAKCiRhcnJheSA9IGFycmF5KAoJYXJyYXkoIjAwMDAwMDAwMDk5OTk5OTkiLCIyMDE4MTIwOSIsIjAwMDAwMCIsIlJFTSBCQVNJQ0EiLCIwLjAwIiwiQyIpLAoJYXJyYXkoIjAwMDAwMDAwMDk5OTk5OTkiLCIyMDE4MTIwOSIsIjAwMDAwMCIsIkNSRUQgSlVST1MiLCIwLjAyIiwiQyIpCik7CgpmdW5jdGlvbiB0cmFuc2Zvcm1lKCRhcnJheSkgCnsKCSRhcnJheV9uZXcgPSBhcnJheSgpOwoJZm9yZWFjaCgkYXJyYXkgYXMgJHZhbHVlcykKCXsKCQkkYXJyYXlfY29weSA9IGFycmF5KCk7CgkJZm9yZWFjaCAoJHZhbHVlcyBhcyAka2V5ID0+ICR2YWx1ZSkgCgkJewoJCQlzd2l0Y2ggKCRrZXkpIHsKCQkJCWNhc2UgMDoJCQoJCQkJCSRhcnJheV9jb3B5WydDb250YSddCT0gJHZhbHVlOwkKCQkJCQlicmVhazsKCQkJCWNhc2UgMToJCgkJCQkJJGFycmF5X2NvcHlbJ0RhdGEnXQk9ICR2YWx1ZTsJCQkKCQkJCQlicmVhazsKCQkJCWNhc2UgMjoJCQkJCgkJCQkJJGFycmF5X2NvcHlbJ0NvZCddID0gJHZhbHVlOwoJCQkJCWJyZWFrOwoJCQkJY2FzZSAzOgkJCQkKCQkJCQkkYXJyYXlfY29weVsnSGlzdG9yaWNv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