Delete spaces on the beginning and at the end ?

Discussion in 'PHP' started by meannn, Dec 26, 2009.

  1. #1
    Hello, I want to delete if there are spaces at the beginning and at the end in the sentence.

    [​IMG]

    I need your help, thanks...
     
    meannn, Dec 26, 2009 IP
  2. Dondon2d

    Dondon2d Peon

    Messages:
    3,193
    Likes Received:
    146
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Uhm, mind sharing the code so we could check what's wrong :p
     
    Dondon2d, Dec 26, 2009 IP
  3. dannywwww

    dannywwww Well-Known Member

    Messages:
    804
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    110
    #3
    You can use the trim() function to do this.
     
    dannywwww, Dec 26, 2009 IP