You are here: Re: Can't get \n to work. « PHP Programming Language « IT news, forums, messages
Re: Can't get \n to work.

Posted by Gary Hasler on 10/05/06 21:44

sk wrote:
> echo "foo is $foo\n"; // this prints: foo is 2 (with a new-line)
> ...
> I can not get this to work.

I've had the same problem.
This is a bit clunky but always works for me:

$cr = '
';

echo "foo is $foo" . $cr;

 

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

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