After i read several "single vs. double quotes" threads, i decided to use single quotes from now on. As i overhauled one of my minor scripts i noticed a weird problem.
This statement:
echo('some text \n on a new line');
would output:
"some text \n on a new line"
But it's supposed to output:
"some text
on a new line"
Same if i use print(). Do the single quotes cause this behaviour? How can this be fixed?
Is it better to use
echo "some text ...";
or
echo 'some text ...';
instead?