Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jul 2008
    Location
    Maryland
    Posts
    34
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Simple explanation for what the letters mean

    I'm getting confused, and want to make sure I understand correctly.

    What do the \t and \r do? I understand the \n to be a new line. See example, please.

    PHP Code:
    echo "\t<tr>\r\n"
    Thanks,
    Donna

  • #2
    Senior Coder djm0219's Avatar
    Join Date
    Aug 2003
    Location
    Wake Forest, North Carolina
    Posts
    1,294
    Thanks
    4
    Thanked 203 Times in 200 Posts
    \t is a tab (which is pretty meaningless when echoing HTML) \r is a carriage return and \n is a newline.
    Dave .... HostMonster for all of your hosting needs

  • Users who have thanked djm0219 for this post:

    dmac68 (07-29-2008)

  • #3
    New Coder
    Join Date
    Jul 2008
    Location
    Maryland
    Posts
    34
    Thanks
    6
    Thanked 0 Times in 0 Posts
    Thanks, Dave. I couldn't find a simple list somewhere for what this stuff is, and trying to teach myself makes it hard to read some of what I find online.

    Donna


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •