Reply to Re: Newline

Your name:

Reply:


Posted by Carl Vondrick on 04/13/06 19:53

infernon wrote:
> When I attempt to use \n in my code to generate a newline, it does not
> work. I've also see the other posts about using \r along with \n, but
> that doesn't work either. I'm sort of stuck here. Is there anything
> that I can do to generate a newline?

My bet is that you are doing this:

echo 'Test\n';

The problem here is the single quotes. The single quotes tell the parser to
just spit out this string, and ignore any modifiers or variables.

So, try this:

echo 'Test'."\n";


Good luck,
Carl

--
Carl Vondrick
Web-Engineer
www.carlsoft.net

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация