SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: adding a line

  1. #1
    SitePoint Enthusiast
    Join Date
    Nov 2005
    Posts
    93
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    adding a line

    how do you add a new line in php?

    $somecontent = $REMOTE_ADDR & "/n";

    would that work?

  2. #2
    SitePoint Wizard
    Join Date
    Aug 2004
    Location
    California
    Posts
    1,672
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's:
    PHP Code:
    $somecontent $REMOTE_ADDR "\n";

    // or since you already have double quotes
    $somecontent "$REMOTE_ADDR\n"
    Christopher


Bookmarks

Posting Permissions

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