<?php $contents="id,id1,id2\n"; $value1="Record3, must in\n single, tab of excel record"; for($i=0;$i<2;$i++) { $contents.="\n"; $contents.="Record1,"; $contents.="Record2," } $contents = strip_tags($contents); header("Content-Disposition: attachment; filename=WebinfopediaDemoExcelExport".date('d-m-Y').".csv"); print $contents; ?>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)