You are here: Re: String Problems - newline appears as text « All PHP « IT news, forums, messages
Re: String Problems - newline appears as text

Posted by Martie on 09/28/08 11:48

On 22 May 2006 15:08:46 -0700, Jonathan Tremlett wrote...
>
>Hi Chris,
>
>Your solution does not seem to work.
>
>echo "Hello \n World"; outs to Hello World
>
>I am sure I have written this before without this trouble. Have you any
>further advice?
>
>Jonathan Tremlett
>

If you look at your HTML output you'll see a newline, but your HTML won't
necessarily see it. You might need to add a <br> tag so your HTML will see the
line break. Maybe...

echo "Hello <br>\n World";

Martie

--
Unlimited Newsgroup Downloads / $19.95 month
More Details - http://newsguy.com/overview.htm

 

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

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