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.
a little time reading recommended.
Comments
Post a Comment