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

Posted by Jonathan Tremlett on 05/23/06 00:04

Hi,

I was wondeirng if someone can help me? I am displaying a string on
screen and all I want to do is make it take a new line.

The code is as follows:

<?php
echo 'Hello \n World';
?>

I am obviously expecting:

Hello
World

but get output:

Hello \n World

Is there anytihng that I have done wrong or is there a php
configuration that requires to be set?

Any help will be appreciated

Jonathan Tremlett

 

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

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