PHP Classes

File: example

Recommend this page to a friend!
  Classes of Felipe Nascimento de Moura   OFX Parser   example   Download  
File: example
Role: Example script
Content type: text/plain
Description: Exemple of use
Class: OFX Parser
Parse and extract financial records from OFX files
Author: By
Last change:
Date: 14 years ago
Size: 416 bytes
 

Contents

Class file image Download
<?php
   
include('OFXParser.php');
   
$ofx= new OFXParser();
   
$ofx->loadFromFile('example.ofx');
   
    echo
'<pre>';
   
print_r($ofx->getCredits());
   
print_r($ofx->getDebits());
   
print_r($ofx->getByDate(11, 02, 2009));
   
print_r($ofx->getMoviment(2)); // the second moviment
   
print_r($ofx->filter('MEMO', 'DOC', true, true)); // all moviments that have DOC in its description, NOT case sensitive
   
echo '</pre>';
?>