PHP Classes
elePHPant
Icontem

File: TstXls.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Gilbert BENABOU  >  ABG PHP To XLS  >  TstXls.php  >  Download  
File: TstXls.php
Role: Example script
Content type: text/plain
Description: Test script
Class: ABG PHP To XLS
Generate Excel files with data from arrays
Author: By
Last change:
Date: 4 years ago
Size: 927 bytes
 

Contents

Class file image Download
<?php
################################################################################
# Project : ABG Framework
# File : TstXls.php
# V1.0.0 27/03/2011
# G. BENABOU / ABG Soft PARIS FRANCE
#
# Test bed for ABG_PhpToXls.cls.php class
#
################################################################################

include('ABG_PhpToXls.cls.php');
 
$TstArray=array( array(1.222,'B1', 'C1', 'D1', 'E1'),
                   array(
2237, 'B2', 'C2', 'D2', 'E2', 'F2'),
                   array(
'A3', 'B3', true, 'D3', 3456),
                   array(
44475, false, 'C4', 52.643e1),
                   array(
5689, 'B5', 'C5', 'D5', 'E5', 'F5', null, 'H5')
                );
  try{
   
$PhpToXls = new ABG_PhpToXls($TstArray, null, 'Sample', true);
// $PhpToXls->SendFile();
   
$PhpToXls->SaveFile();
  }
  catch(
Exception $Except){
   
ABG_PhpToXls::ExceptPrint($Except);
  }
?>