I want to ensure I'm exporting my data to a tab-delimited format.
when I export data to a file I add "\t" and then add "\n" to end a row.
Is this typical for all exporting scripts?
$contents .= "First column"."\t";
$contents .= "First column"."\t";
$contents .= "First column"."\n";
header("Content-type: application/x-msdownload");
header("Content-Disposition: attachment; filename=something.txt");
header("Pragma: no-cache");
header("Expires: 0");
print "$contents";
Basically, I'm using someone else's script to export my data to a txt file. But to be honest, I don't know if it's tab or not. I'm assuming the \t means tab. So I just need someone to validate that.
And if that means tab, then what is needed to have a csv file?
Any help in this subject will be sooooo appreciated.