Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Sergey Sergeevich Baklanov  >  NYOS_ExcelWriter_simple  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: load file OR creat data file
Class: NYOS_ExcelWriter_simple
Generate Excel 2003 spreadsheet from array of data
Author: By
Last change:
Date: 3 years ago
Size: 471 bytes
 

Contents

Class file image Download
<?php

include('excel_simple.php');

// data

// data array
    
$array = array();

    
// 1 string
    
$tr = array();
        
// 1 colum
        
$tr[] = 'one';
        
// 2 colum
        
$tr[] = 'two';

    
$array[] = $tr;

    
// 2 string
    
$tr = array();
        
// 1 colum
        
$tr[] = '2 one';
        
// 2 colum
        
$tr[] = '2 two';

    
$array[] = $tr;    
    
    



// load file
$NY_excel_simple->LoadFile($array,'namefile.xls');

// OR file data
$DataFile $NY_excel_simple->CreatFile($array);