Convert new row in a textarea to <br/>

Discussion in 'PHP' started by Kyriakos, Feb 17, 2010.

  1. #1
    Hi,

    how i can convert a new row in a textarea to "<br/>"? (like facebook textarea).
     
    Kyriakos, Feb 17, 2010 IP
  2. wing

    wing Active Member

    Messages:
    210
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    58
    #2
    One way is to use the nl2br function.
     
    wing, Feb 17, 2010 IP