Ler arrays dentro de arquivo texto
Boa tarde,
como devo ler o conteúdo de um arquivo txt mas esse conteúdo sendo arrays?
>
array (
)array (
)array (
'notificationCode' => '21E54E54DFD',
'notificationType' => 'transaction',
)array (
)array (
'notificationCode' => '8E4DB8FA2E9',
'notificationType' => 'transaction',
)
if((file_exists($name)) and (is_file($name))){
$open =fopen($name,"a");
$dados=file($name);
$a=0;
foreach($dados as $row){
print_r($row);
}
}
assim ele me mostra as arrays:
array ( )array ( )array ( 'notificationCode' => '21E54E54DFD', 'notificationType' => 'transaction', )array ( )array ( 'notificationCode' => '8E4DB8FA2E9', 'notificationType' => 'transaction', )array ( )array ( )
Como ler individualmente as arrays vindas do txt?
desde já agradeço
Discussão (3)
Carregando comentários...