I am trying to get data of all transactions from a file which contains multiple transaction data, it happens so that I can get transaction data of one transaction by php explode. So my question is how to explode the data to get multiple transactions data ..
$data['file'] = file_get_contents('C:\TSaveBatchDBMessage.txt');
$data['exp'] = explode('TSaveTransactionMessage',$data['file']);
it only gives output for the first transaction data, and one files contains almost dozens of transactions ..
Help appreciated
PS: This file is generated by software and there is no possible count of transactions in the file, they may be 100, 1 or any number in between ..