Hey Guys,
First Post! Yay
I have a problemo, I feel really stupid about having to ask this question. But basically I can't get a new line when I echo output in a script I am writing for my website.
Here is the code:
echo $newsentry;
echo '_______
Read More..';
I tried '\n' I tried using " (double quotes) I have used ' (single quotes) I have positioned the Line Feed '\n' at the begining of an output, and at the end. Neither made any difference. I tried using carriage return '\r' too. Nothing.
I haven't coded in PHP for a while, well nothing basic (I know that sounds rediculas but it has been mostly Apps etc, Client Scripts blah blah blah, but I haven't had to echo with a new line for a few years. Probably the last website which I wrote with my friend. So I checked the PHP manual, and I am clearly missing something when I am reading it, I understood it to mean (which as you can see from my code, is what I am currently doing), that you could just somehow type:
echo "some string
and it carries on to the second line";
However as I first thought, this makes no difference.
Could this be a configuration on the Box that hosts this Site??
Sorry for sounding so stupid guys, I appreciate your help.
-Craig