PHP CLI application on Debian: why can't I print a line break?
I have a really cryptic problem: I am writing a PHP CLI application running on a debian server. I am connected to the server via SSH, just the usual way. Everything works as usual. Except the following:
echo "My CLI fun\n\n";
echo "Is this.";
Outputs on SSH terminal when executing PHP script:
My CLI funIs this.
I am really puzzled as I have never had such a problem. bash behaves fine in all other respects. I have already tried to deduce chr(10)
the same problem.
Does anyone have a clue?
+2
a source to share
3 answers