You are here: newbie question: can't make newline character work in echo « PHP Programming Language « IT news, forums, messages
newbie question: can't make newline character work in echo

Posted by Stephen Kay on 03/21/06 20:25

learning php here - I'm echoing some debug code, and I cannot seem to make
the newline character work.

For example, I tried this:

echo "supposedly, this will \nbe on \nmultiple lines.";

which, according to the php manual, should produce this:

supposedly, this will
be on
multiple lines.

But it doesn't work! It's all on the same line. What obvious thing am I
missing?

--
Stephen Kay
Karma-Lab sk@karma-lab.NOSPAM.com
^^^^^^^

 

Navigation:

[Reply to this 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

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