> -----Original Message----- > From: Ray Gaylog [mailto:[EMAIL PROTECTED]] > 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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]