Login   Register  
PHP Classes
elePHPant
Icontem

File: example

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 4 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(11022009));
    
print_r($ofx->getMoviment(2)); // the second moviment
    
print_r($ofx->filter('MEMO''DOC'truetrue)); // all moviments that have DOC in its description, NOT case sensitive
    
echo '</pre>';
?>