PHP Classes

File: examples/store_tocsv.php

Recommend this page to a friend!
  Classes of Everton da Rosa  >  XtPHP  >  examples/store_tocsv.php  >  Download  
File: examples/store_tocsv.php
Role: Example script
Content type: text/plain
Description: Example script
Class: XtPHP
General purpose library of utility classes
Author: By
Last change:
Date: 8 years ago
Size: 406 bytes
 

Contents

Class file image Download
<?php

require '../store.php';
require
'../utils.php';

require
'store.php';

$csv = XtStore::toCSV($store);//coloca o nome dos campos do store como nomes de colunas
XtUtils::printr($csv);

$csv = XtStore::toCSV($store, array('Código', 'Nome'));//coloca nomes de colunas personalizados
XtUtils::printr($csv);

$csv = XtStore::toCSV($store, false);//não coloca nomes de colunas
XtUtils::printr($csv);

?>