Paul's Programming Notes     Archive     Feed     Github

PHP - Loop Through Excel Document and Print Cells


require_once 'excel_reader2.php';

foreach($reader->sheets as $k=>$data)
 {
    echo "\n\n ".$reader->boundsheets[$k]."\n\n";

    foreach($data['cells'] as $row)
    {
        foreach($row as $cell)
        {
            echo "$cell\t";
        }
        echo "\n";
    }
 }