Welcome to WebmasterWorld Guest from 107.20.5.156

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Removing blank space from a variable

     

PumpkinHead

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

10+ Year Member



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

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

WebmasterWorld Senior Member trillianjedi is a WebmasterWorld Top Contributor of All Time 10+ Year Member



I think rtrim is the fella for you:-

[uk2.php.net...]

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

TJ

 

Featured Threads

Hot Threads This Week

Hot Threads This Month