I am trying to write a PHP script that echo
s a string, but it doesn't recognize the end of line function in there.
For example,
echo "thank you \n "
echo "for coming over"
The \n
is ignored and it prints the whole line as thank you for coming over
.
I got the same result for the following to:
echo "thank you " . PHP_EOL.;
echo "for coming over" . PHP_EOL.;
`. – Tomalak Jun 29 '11 at 11:36