I would like to ask a simple question. I have different variables $a='a', $b='b', $c='c' in PHP. I would like to save the target txt file with the format like
"a b c".
But if I use fwrite, I could only write the variables in a column.
"a
b
c"
Anyone could help me? Thanks in advance.
PS
I found problem may be here. Each variable I used is from the lines of a existed file.
$lines= files('abc.txt');
$a = $lines[0]; //like this
In this circumstance, the variables contains also a line feed ? Am I write ?