我的输出如下。从中我只想要四列数据,分别是:ValueDate,Debit,Credit和Balance。如何从整个字符串中选择相应数据的这些列? (我在CodeIgniter中这样做)
string 'Branch: cdd' (length=17)
string 'DrawingPower: 5' (length=15)
string 'InterestRate(%p.a.): 0' (length=22)
string 'Balanceon1Aug2011: "8,12,994.98"' (length=32)
string 'StartDate: 01-Aug-11 ' (length=26)
string 'EndDate: 19-Aug-11 ' (length=24)
string 'TxnDate ValueDate Description RefNo./ChequeNo. BranchCode Debit Credit Balance' (length=78)
string '12-Aug-15 12-Aug-11 TOTRANSFER-vvvvvvvvvvvvJULY-- abdgfsdfhsgsdghfhfhfghsfghsghs "12,300.00" 1,00,194.98' (length=125)
string '17-Aug-15 17-Aug-11 BYTRANSFER-NEFT*jjhkhkhkhk*KERALACARSPVT-- uuuuehugreuhru 13,000.00 "1,13,194.98"' (length=135)
string '18-Aug-15 18-Aug-11 TOTRANSFER-I98y
我想将数据插入数据库,如下所示:
value date Debit Credit Balance
12-Aug-15 12,300.00 1,00,194.98
17-Aug-15 13,000.00 1,13,194.98
18-Aug-15 135.00 1,13,059.98