homepage Welcome to WebmasterWorld Guest from 54.197.108.124
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Removing blank space from a variable
PumpkinHead




msg:1269263
 3:58 pm on Mar 8, 2006 (gmt 0)

Hi,

I would like to remove the blank space from the right hand side of a variable (while keeping any space on the left)..

E.g

" Text "

will become...

" Text"

Is there an easy way to do this?

Thanks

PH

 

trillianjedi




msg:1269264
 3:59 pm on Mar 8, 2006 (gmt 0)

I think rtrim is the fella for you:-

[uk2.php.net...]

Just happened to be doing the same thing myself right now...

TJ

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved