Description
The following code:
<?php
fputcsv($fh, ['Jan', 'He said "Hello"', "Line1\nLine2"], ';', '"', '"');
Resulted in this output:
Jan;"He said "Hello"";"Line1
Line2"
But I expected this output instead:
"Jan";"He said ""Hello""";"Line1
In the expected output it should be the quote chars doubled and whole second cell should be by quote chars enclosed. Expected output will be then properly read by Excel (we use Czech, so semicolon used as col separator)
PHP Version
PHP Version 8.4.6
Windows NT ___ 10.0 build 22631 (Windows 11) AMD64
Operating System
Windows