我使用了一个小脚本来导入 mt940 文件(荷兰银行交易文件)。
这是我返回的数组,但我需要一点帮助才能从数组中获取正确的值。
Array (
[0] => Statement_banking Object (
[_bank:Statement_banking:private] => ING
[_account:Statement_banking:private] => 111111111
[_transactions:Statement_banking:private] => Array (
[0] => Transaction_banking Object (
[account:Transaction_banking:private] => 111111111
[accountName:Transaction_banking:private] => V. DE JONG KERKSTRAAT 1154 1234 BW
[price:Transaction_banking:private] => 0.56
[debitcredit:Transaction_banking:private] => C
[description:Transaction_banking:private] => 0111111111 V. DE JONG KERKSTRAAT 1154 1234 BW ENSCHEDE BET.KENM. 1004510036716378 3305330802 AFLOSSINGSTERMIJN 188616 / 1E TERMIJN
[valueTimestamp:Transaction_banking:private] => 1279749600
[entryTimestamp:Transaction_banking:private] => 1279749600
[transactionCode:Transaction_banking:private] => 078
)
[1] => Transaction_banking Object (
[account:Transaction_banking:private] => 111111111
[accountName:Transaction_banking:private] => CUSTOMER NL SPOEDBETALING
[price:Transaction_banking:private] => 10.45
[debitcredit:Transaction_banking:private] => C
[description:Transaction_banking:private] => 0111111111 CUSTOMER NL SPOEDBETALING GE2009120212345 RE091202Â3737 /RFB/NLÂFMIÂ021209 NLÂFMIÂ021209 VOORSCHOT COMMISSIE
[valueTimestamp:Transaction_banking:private] => 1279749600
[entryTimestamp:Transaction_banking:private] => 1279749600
[transactionCode:Transaction_banking:private] => 077
)
[2] => Transaction_banking Object (
[account:Transaction_banking:private] =>
[accountName:Transaction_banking:private] =>
[price:Transaction_banking:private] => 10000.99
[debitcredit:Transaction_banking:private] => D
[description:Transaction_banking:private] => VERZAMELBETALING BATCHÂID: 012345 TOTAAL 198 POSTEN
[valueTimestamp:Transaction_banking:private] => 1279749600
[entryTimestamp:Transaction_banking:private] => 1279749600
[transactionCode:Transaction_banking:private] => 029 ) )
[_startPrice:Statement_banking:private] => 44
[_endPrice:Statement_banking:private] => 9945
[_timestamp:Statement_banking:private] => 1279749600
[_number:Statement_banking:private] => 100
)
)
例如,这个键给了我名字和地址:
[accountName:Transaction_banking:private] => V. DE JONG KERKSTRAAT 1154 1234 BW
这把钥匙给了我交易价格:
[price:Transaction_banking:private] => 0.56
有什么建议么?