homepage Welcome to WebmasterWorld Guest from 174.129.80.166
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Accredited PayPal World Seller

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
what does /n do?
davis




msg:1307356
 8:06 pm on Mar 21, 2003 (gmt 0)

Im reading a book, and im just wondering, what does /n do? Does it just make the source coding look nice, or is there something else it does which I dont see?

Thanks

 

aspdaddy




msg:1307357
 8:09 pm on Mar 21, 2003 (gmt 0)

Its a newline character in c++ IO stream :)

cout << "hello World\n"

jatar_k




msg:1307358
 8:10 pm on Mar 21, 2003 (gmt 0)

it is a newline character \n

if you are outputting html it helps code formatting when you view source through the browser.

andreasfriedrich




msg:1307359
 8:18 pm on Mar 21, 2003 (gmt 0)

Welcome to WebmasterWorld [webmasterworld.com] davis.

IŽd suggest reading Marcia`s WebmasterWorld Welcome and Guide to the Basics [webmasterworld.com] post which contains a lot of useful information.

For PHP [php.net] see the table of escaped characters [php.net].

Andreas

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved