Login   Register  
PHP Classes
elePHPant
Icontem

File: print_filter_cells.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Karl Holz  >  PHP Convert Excel to JSON  >  print_filter_cells.php  >  Download  
File: print_filter_cells.php
Role: Example script
Content type: text/plain
Description: cell filter test - print_filter_cells.php Prints out a JSON document of excel worksheet cell and their values, only cells added to cell list will be displayed
Class: PHP Convert Excel to JSON
Convert data from Excel spreadsheet to JSON format
Author: By
Last change:
Date: 1 year ago
Size: 296 bytes
 

Contents

Class file image Download
<?php
require_once 'excelMap.class.php';
$e=new excel2JSON();
$e->set_excel($file'false');
$e->load_sheet($sheet);
$e->load_sheet_data();
//
$e->add_cell_list('A1');

$e->add_cell_list('A2');
$e->add_cell_list('B2');

$e->add_cell_list('A4');
$e->add_cell_list('B4');

$e->print_filter_cells();