- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
private function exportPTCsvFile(array $transactions, array $refunds, $fileName)
{
$csv[] = array('Date', 'Time Zone', 'Name', 'Type', ' Status', 'Currency', 'Gross', 'Fee', 'Net', 'From Email Address', 'Transaction ID', ' Item Title', 'Deal ID', 'Deal City', 'Merchant ID', 'User ID', 'Purchase Date', 'CMS Transaction ID', 'CMS Quantity', 'CMS Amount', 'Kash Used', 'CC Digits', 'Coupon Link', 'Paymentech Response');
// headers...
foreach ($csv as $titles) {
print utf8_encode(implode(',', $titles))."\n";
}
// Rest of code...
}
Lure Of Chaos 17.06.2011 16:46 # 0
не льсти себе (ц)
roman-kashitsyn 18.06.2011 00:17 # +2
guest 18.06.2011 02:11 # 0
Типично для PHP.
Lure Of Chaos 18.06.2011 08:29 # 0
kovel 18.06.2011 10:14 # 0
SmackMyBitchUp 20.06.2011 13:52 # 0