Hello,
As en newbie in php i am looking to a solution for the creation of an output file with semicolon seperations in it. comma delimitied is no option because the file contains values with a comma.
$myFile = "data.txt";
$data1 = "".$text1.",".$text2.",".$text3.PHP_EOL;
$data2 = "".$text4.",".$text5.",".$text6;
$fp = fopen($myFile, 'w') or die('Could not open file!');
fwrite($fp, "$data1"."$data2") or die('Could not write to file');
fclose($fp);
The result is:
test1,test2,test3
test4,test5,test6
I Would like to have:
test1;test2;test3
test4;test5;test6
Thanks in advance