Re: [PHP] Linebreak

2006-04-21 Thread Jochem Maas
Richard Lynch wrote: On Thu, April 20, 2006 9:47 pm, Peter Lauri wrote: I feel stupid. In many examples I have seen similar to: echo 'Whatever.\n'; echo 'An other whatever.\n'; But my PHP outputs the \n instead of a new line in the source. I am stupid? No, just naive. :-) Quotes (") an

Re: [PHP] Linebreak

2006-04-21 Thread Richard Lynch
On Thu, April 20, 2006 9:47 pm, Peter Lauri wrote: > I feel stupid. > > In many examples I have seen similar to: > > echo 'Whatever.\n'; > > echo 'An other whatever.\n'; > > But my PHP outputs the \n instead of a new line in the source. > > I am stupid? No, just naive. :-) Quotes (") and Apostrop

Re: [PHP] Linebreak

2006-04-21 Thread Jochem Maas
Martin Alterisio wrote: You wouldn't feel/look stupid if you had RTFM: no no thats not right - I RTFM all the time and still feel stupid ;-) http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.single to to OP: do read up on strings some more (look for the wor

Re: [PHP] Linebreak

2006-04-20 Thread Martin Alterisio
You wouldn't feel/look stupid if you had RTFM: http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.single 2006/4/20, Peter Lauri <[EMAIL PROTECTED]>: > > I feel stupid. > > > > In many examples I have seen similar to: > > > > echo 'Whatever.\n'; > > echo 'An other w