Thursday 7 May 2015

Handle Special Characters exporting Data in CSV

Please use below code before fputcsv function

$df = fopen($filepath, 'w');
fprintf($df, chr(0xEF).chr(0xBB).chr(0xBF));

No comments:

Post a Comment