mysql - How can i convert my PHP Table into XL sheet format -


i created table , performed arithmetic operations on using php. after calculations, values stored in table. how can convert php page table xl sheet format?

the easiest way solve exporting table in .csv format.

documentation function.fputcsv

$dataset = array(   array('name', 'phone', 'country'),   array('maria', '+555199999999', 'brazil'),   array('joão', '+555188888888', 'brazil') );  $fp = fopen ('catalog.csv', 'w');  foreach ($dataset $data) {   fputcsv ($fp, $data); }  fclose ($fp); 

but ... if xls necessary. tool can give little help.

documentation of tool

a little time reading recommended.


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -