RE: [PHP] printf()?

From: Date: Mon, 17 Dec 2001 04:58:16 +0000
Subject: RE: [PHP] printf()?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-77902@lists.php.net to get a copy of this message
> -----Original Message----- > From: Ray Gaylog [mailto:rgaylog@rogers.com] > I've been using PHP for just a little while, however I have > noticed somthing. > > In the doc's I've noticed you can do this: > printf("line1 \n line2 \n"); > > Now..this should (like C) print two seperate lines..however It > doesn't. To print this on seperate lines I must put a <BR> in there. > > Any ideas? Yes, and not facetiously - read the HTML specs. If you look at the PHP output, you'll see separate lines. If you read the HTML spec, you'll find out how HTML is supposed to handle whitespace, and you'll discover a whole lot more, too. Mark C.

« previous php.general (#77902) next »