homepage Welcome to WebmasterWorld Guest from 54.166.105.24
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

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 "\t" and "\n" inside a string mean?
cosmoyoda




msg:3608800
 12:34 am on Mar 24, 2008 (gmt 0)

I've never had to use those (sorry, I'm a newbie), but I was wondering what they do? Is "\n" equivalent to the br tag?

 

eelixduppy




msg:3608803
 12:51 am on Mar 24, 2008 (gmt 0)

\n is a linefeed character and \t is tab character. For more information on escaped characters, refer to the documentation on strings: [php.net...]

cosmoyoda




msg:3610460
 8:56 pm on Mar 25, 2008 (gmt 0)

Thanks again, eelixduppy! I should have read the PHP.net manual before posting that question.

Now I got used to "\t" and "\n" and I'm using it a lot.

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.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved