Re: \n not working

From: Date: Sun, 16 Sep 2001 20:54:41 +0000
Subject: Re: \n not working
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-67531@lists.php.net to get a copy of this message
If you are trying to use \n for a new line in HTML code, it will not work. In other words echo "<html><h1>Hello\nWorld</h1></html"; will not work. You must use <br> instead. Also, be sure that you are using double quotes instead of single quotes. Single quoted text is literally interpreted. -- Gaylen gfraley5@earthlink.net http://www.gaylenandmargie.com PHP KISGB v1.01 Guestbook http://www.gaylenandmargie.com/publicscripts "Alpherjo" <stuewez@home.com> wrote in message news:20010916204552.39556.qmail@pb1.pair.com... > I am just learning PHP. I have it installed on my Win 2000 IIS to practice, > and after I save PHP files in my wwwroot folder, I go ahead and access my > practice pages through IE via my full (universal) server address. However, > the \n code (to start a new line) never works. Any ideas? > Thanks! > >

« previous php.general (#67531) next »