PHP Classes
elePHPant
Icontem

File: simplexlsx.example.php

Recommend this page to a friend!
  Classes of Sergey Shuchkin  >  Simple XLSX  >  simplexlsx.example.php  >  Download  
File: simplexlsx.example.php
Role: Example script
Content type: text/plain
Description: basic example
Class: Simple XLSX
Parse and retrieve data from Excel XLS files
Author: By
Last change: update examples
Date: 27 days ago
Size: 354 bytes
 

Contents

Class file image Download
<?php

require_once __DIR__ . '/simplexlsx.class.php';

if (
$xlsx = SimpleXLSX::parse('countries_and_population.xlsx')) {
    echo
'<h1>$xlsx->rows()</h1>';
    echo
'<pre>';
   
print_r( $xlsx->rows() );
    echo
'</pre>';

    echo
'<h1>$xlsx->rowsEx()</h1>';
    echo
'<pre>';
   
print_r( $xlsx->rowsEx() );
    echo
'</pre>';
} else {
    echo
SimpleXLSX::parse_error();
}
?>