Location: PHPKode > scripts > NYOS_ExcelWriter_simple > example.php
<?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);
Return current item: NYOS_ExcelWriter_simple