Remove Multiple Spaces Before and After Characters PHP

Posted by Belgin Fish on Stack Overflow See other posts from Stack Overflow or by Belgin Fish
Published on 2010-04-07T20:36:27Z Indexed on 2010/04/07 20:43 UTC
Read the original article Hit count: 170

Filed under:

Hi, say I have a string like so

 Testing       

How could I have it remove all spaces before the first letter, and all spaces after the last letter in the string.

Thanks!

© Stack Overflow or respective owner

Related posts about remove