1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

php if statement

Discussion in 'PHP' started by monkeyclap, Feb 20, 2010.

  1. #1
    hey, if i have the following statement

          if($letter == "q" || $letter == "w")
    PHP:
    instead of an actual letter, what if i want a new line, so "\n"
    is that possible?
     
    monkeyclap, Feb 20, 2010 IP
  2. danx10

    danx10 Peon

    Messages:
    1,179
    Likes Received:
    44
    Best Answers:
    2
    Trophy Points:
    0
    #2
    Yes :)

    Didn't you try it?, you should follow your insticts first, then if you need help - post here.
     
    danx10, Feb 20, 2010 IP
    monkeyclap likes this.
  3. monkeyclap

    monkeyclap Active Member

    Messages:
    836
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    85
    #3
    yes you're right, i tried "\r\n" and that doesn't work, but like you say "\n" works fine. thanks again!
     
    monkeyclap, Feb 20, 2010 IP