Welcome to WebmasterWorld Guest from

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)

5+ Year Member

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)

WebmasterWorld Senior Member eelixduppy is a WebmasterWorld Top Contributor of All Time 10+ Year Member

\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)

5+ Year Member

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.


Featured Threads

Hot Threads This Week

Hot Threads This Month