<?php $data = [ "test1", "test2", "test3", "test4", "test5", ]; $handle = fopen('php://memory', 'w+'); // Accepting the default values doesnt work fputcsv($handle, $data); // Providing all default parameter values work fputcsv($handle, $data, ",", "\"", "\\", "\n"); fclose($handle);
You have javascript disabled. You will not be able to edit any code.