Hello everyone. I am new to PHP, but I have been lurking for a short period of time here. I will probably come back to this place and have many many questions for you guys

. As for the following question, I have already searched a few places for it, but it seems like I am the only one who doesn't understand what is going on.
Code: Select all
print $myname . " is " . $myage . " years old.\n";
print "hello."
My problem is with the "\n" escape sequence. When I try to type the above line, it doesn't display as I want it to. Why won't the "\n" do its job and break to a new line? As of now, I am seeing this:
Code: Select all
(string variable) is (numeric variable) years old. hello.
My desired result is, of course, the following.
Code: Select all
(string variable) is (numeric variable) years old.
hello.
Okay, time for the questions: Why isn't "hello" breaking to a new line? Did I type something incorrectly? I tried doing the same thing with a different escape sequence, such as "\$" and "\\" and these display correctly when placed in the exact same position. Is there a fix or am I going to have to result to "<br>" tags?
One more clarifying question: What is the difference between a new line break (\n) and a carriage return (\r)? I cannot seem to figure out what separates them. Thanks for all of your help in advance!
EDIT: I am also looking for a good, free of charge, PHP editor. If it can work with other languages, that would be great. The more the merrier!