Take a look at:

http://www.php.net/manual/en/function.chop.php

almost identical to perl's chomp().

At 13:46 17/02/01 +0530, jaskirat wrote:
>Since this thread is running I would like to know the gurus' opinons on the
>similar following situation
>
>Suppose there is a variable like this
>
>$var = "This is a variable          ";
>
>Now I want to strip off white spaces on the end without losing them in the
>middle of the sentence ..

--------------------
Tel: 6653-297502
Email: [EMAIL PROTECTED]
www.mangorains.com
-------------------


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to