如何阅读Open Financial Exchange(OFX)文件并发送到php页面

时间:2016-05-13 09:14:59

标签: php mysql ofx

我怎样才能用csv格式的php读取ofx(开放式金融交易所)

<?php
$row = 1;
if (($handle = fopen("test.csv", "r")) !== FALSE) {
while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {
    $num = count($data);
    echo "<p> $num fields in line $row: <br /></p>\n";
    $row++;
    for ($c=0; $c < $num; $c++) {
        echo $data[$c] . "<br />\n";
    }
}
fclose($handle);
}
?>

0 个答案:

没有答案