PHP Classes

File: examples/html.php

Recommend this page to a friend!
  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: 13 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();
?>