3 namespace SimpleExcel\Writer;
41 $this->tabl_data = array();
51 if (!is_array($values)) {
52 $values = array($values);
54 array_push($this->tabl_data, $values);
64 foreach ($this->tabl_data as
$row) {
65 foreach ($row as $cell) {
66 $content .= $cell.
'\t';
85 if (!isset($target)) {
87 $target =
'php://output';
91 header(
'Content-Type: '.$this->content_type);
92 header(
'Content-Disposition: attachment; filename='.
$filename.
'.'.$this->file_extension);
94 $fp = fopen($target,
'w');
98 if ($target ==
'php://output') {
111 if(!is_array($values)){
112 $values = array($values);
114 $this->tabl_data = $values;