Is there a native function or solid class/library for writing an array as a line in a CSV file without enclosures? fputcsv will default to \" if no
fputcsv
\"
Chose the solution depends on your application. For some case own code for csv is needed. In case 1 (See result chr0), case 2 (chr127) and case 3 (chr127) the data will be modified(bad thing). Instead use something like this, thanks @oops: