S
S
skyfly20102016-03-28 14:35:20
PHP
skyfly2010, 2016-03-28 14:35:20

How to process excel file using php?

Good afternoon! Please tell me how to be and what to do.
There is an excel file.
It has a number of columns. I only need data from 1, 2, 5.

  • Tell me, is it possible to edit the file with php? Make it so that all other columns are removed?
  • Is it possible to transfer data from excel to php without converting the file to csv?
  • How to convert xls file to txt using php?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
IceJOKER, 2016-03-28
@skyfly2010

https://phpexcel.codeplex.com/

A
Artem Zolin, 2021-08-26
@artzolin

Another option is the SimpleXLSX library . The basic usage is very simple:

if ( $xlsx = SimpleXLSX::parse('book.xlsx') ) {
  print_r( $xlsx->rows() );
} else {
  echo SimpleXLSX::parseError();
}

Another example in the link

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question