Overview

Namespaces

  • PHP
  • SimpleExcel
    • Enums
    • Parser
    • Spreadsheet
    • Writer

Classes

  • BaseParser
  • CSVParser
  • HTMLParser
  • JSONParser
  • TSVParser
  • XLSXParser
  • XMLParser

Interfaces

  • IParser
  • Overview
  • Namespace
  • Class
  • Tree

Class CSVParser

SimpleExcel class for parsing Microsoft Excel CSV Spreadsheet

SimpleExcel\Parser\BaseParser implements SimpleExcel\Parser\IParser
Extended by SimpleExcel\Parser\CSVParser

Direct known subclasses

SimpleExcel\Parser\TSVParser
Namespace: SimpleExcel\Parser
Package: SimpleExcel
Author: Faisalman
Located at Parser/CSVParser.php
Methods summary
public
# loadFile( string $file_path, array $options = NULL )

Load the CSV file to be parsed

Load the CSV file to be parsed

Parameters

$file_path
string
$file_path Path to CSV file
$options
array
$options Options

Throws

Exception
If file being loaded doesn't exist
Exception
If file extension doesn't match
Exception
If error reading the file
public
# loadString( string $str, array $options = NULL )

Load the string to be parsed

Load the string to be parsed

Parameters

$str
string
$str String with CSV format
$options
array
$options Options
Methods inherited from SimpleExcel\Parser\BaseParser
__construct(), checkFile()
Properties summary
protected string $delimiter
#

Defines delimiter character

Defines delimiter character

protected string $file_extension 'csv'
#

Defines valid file extension

Defines valid file extension

Properties inherited from SimpleExcel\Parser\BaseParser
$workbook
API documentation generated by ApiGen 2.8.0