Welcome to WebmasterWorld Guest from 54.198.246.116

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

What does "\t" and "\n" inside a string mean?

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

Junior Member

10+ Year Member

joined:Nov 3, 2007
posts:131
votes: 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?
12:51 am on Mar 24, 2008 (gmt 0)

Senior Member

joined:Nov 12, 2005
posts:5967
votes: 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...]
8:56 pm on Mar 25, 2008 (gmt 0)

Junior Member

10+ Year Member

joined:Nov 3, 2007
posts:131
votes: 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.

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members