Well, I just thought it would save you asking other questions later. You do want to learn how to do this stuff yourself, don't you? It sounds like the problem is that you lack the patience to read one page.
Diveloperz wrote:The page you linked has no relevance at all.
Even if the page is too long for you, you could have used your browser's "Find" option to search for instances of the word "newline". The very first match would have been in this example code:
<?php
echo 'this is a simple string';
echo 'You can also have embedded newlines in
strings this way as it is
okay to do';
// Outputs: Arnold once said: "I'll be back"
echo 'Arnold once said: "I\'ll be back"';
// Outputs: You deleted C:\*.*?
echo 'You deleted C:\\*.*?';
// Outputs: You deleted C:\*.*?
echo 'You deleted C:\*.*?';
// Outputs: This will not expand: \n a newline
echo 'This will not expand: \n a newline';
// Outputs: Variables do not $expand $either
echo 'Variables do not $expand $either';
?>
And immediately following that is a section about double quoted strings, that starts with a table that includes things like \n, \r, and \t, and what they mean in double-quoted strings.
The forums are not a substitute for the manual. So. RTFM.