Login   Register  
PHP Classes
elePHPant
Icontem

File: examples/html.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Everton da Rosa  >  Txt Xtrator  >  examples/html.php  >  Download  
File: examples/html.php
Role: Example script
Content type: text/plain
Description: exemplo de script
Class: Txt Xtrator
Convert data from CSV to other text based formats
Author: By
Last change:
Date: 3 years ago
Size: 531 bytes
 

Contents

Class file image Download
<?php
/*
 * TxtXtrator - arquivo de exemplo
 * Mostra como utilizar o método show() com o formato html
 */
function noSpace($string){
    
$string trim($string);
    return 
$string;
}

require 
'../TxtXtrator.class.php';
$TxtXtrator = new TxtXtrator();
$filename 'CREDOR.TXT';
$TxtXtrator->loadFile($filename);
$TxtXtrator->loadTpl('credor.json');
$TxtXtrator->setCsvSeparator(';');
$TxtXtrator->xtract();
$TxtXtrator->setOutputType('html');
$TxtXtrator->setLineBreakType('html');
$TxtXtrator->output();
$TxtXtrator->show();
?>