PHP Classes
elePHPant
Icontem

File: examples/02-rows_and_rowsEx.php

Recommend this page to a friend!
  Classes of Sergey Shuchkin  >  Simple XLSX  >  examples/02-rows_and_rowsEx.php  >  Download  
File: examples/02-rows_and_rowsEx.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Simple XLSX
Parse and retrieve data from Excel XLS files
Author: By
Last change: + display errors
+ require_once class
comments about datetime helpers
Date: 8 months ago
Size: 466 bytes
 

 

Contents

Class file image Download
<?php

ini_set
('error_reporting', E_ALL);
ini_set('display_errors', true);

require_once
__DIR__.'/../src/SimpleXLSX.php';

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

   
// ->rowsEx();
   
echo '<h2>$xlsx->rowsEx()</h2>';
    echo
'<pre>';
   
print_r( $xlsx->rowsEx() );
    echo
'</pre>';

} else {
    echo
SimpleXLSX::parseError();
}