Janson Leung 3a8f020d03 Update 10 лет назад
..
OLERead.php 3a8f020d03 Update 10 лет назад
README.md a81284fea8 Update 10 лет назад
SpreadsheetReader.php a6431a69a1 Update 10 лет назад
SpreadsheetReader_CSV.php 40d89b914c Update SpreadsheetReader_CSV.php 10 лет назад
SpreadsheetReader_ODS.php e2b944d521 Update SpreadsheetReader_ODS.php 10 лет назад
SpreadsheetReader_XLS.php 75eab14c6b Update SpreadsheetReader_XLS.php 10 лет назад
SpreadsheetReader_XLSX.php 41268e99de Update SpreadsheetReader_XLSX.php 10 лет назад

README.md

PHPExcelReader is a lightweight Excel file reading class, support the CSV, XLS, XLSX file. It can read line by line as needed.

Requirements:

Usage:

All data is read from the file sequentially, with each row being returned as a numeric array. This is about the easiest way to read a file:

<?php
    require 'PHPExcelReader/PHPExcelReader.php';

    try{
        $Reader = new PHPExcelReader('test.xls');
        $total = $Reader->count();          // get the total rows of records
        //$current = $Reader->current();    // get the current row data

        /*
        $Reader->seek(4);                   // skip to the 4th row 
        $row = $Reader->current();          // get the 4th row data
        */

        /*
        foreach($Reader as $key => $row){
            $data[] = $row;                 // loop obtain row data
        }
        */

        var_dump($total);
    } catch (Exception $e) {
        die($e->getMessage());
    }