The Web Blinders logo

Programming

fputcsv() How to insert into new line of a csv file - php

You can insert a new line character /r/n or /n into a csv file using fputcsv() as follows

<?php
fputcsv($csvFile,["\r\n"]);
//or
fputcsv($csvFile,["\n"]);
?>

ALTERNATE TITLES

fputcsv() php example

\r\n fputcsv php

new line fputcsv php

Need developers ?

if so, send a message.

thewebblinders@gmail.com

More Programming from our blog

SEARCH FOR ARTICLES