djr: Maskierung für die Ausgabe als CSV-Datei

Beitrag lesen

Siehe die höchst bewertete Use Note von MagicalTux at ooKoo dot org in der Doku von fputcsv. Dort heißt es:

If you need to send a CSV file directly to the browser, without writing in an external file, you can open the output and use fputcsv on it..

<?php
$out = fopen('php://output', 'w');
fputcsv($out, array('this','is some', 'csv "stuff", you know.'));
fclose($out);
?>