Re: removing last chr in string
| From: | eschmid+sic at s dot netic dot de | Date: | Thu, 26 Oct 2000 21:44:02 +0000 |
| Subject: | Re: removing last chr in string | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-22211@lists.php.net to get a copy of this message | ||
On Thu, Oct 26, 2000 at 05:35:26PM -0400, Rebecca wrote:
> is there a quick and easy way to remove the last character in a string if it is not a
> whitespace, newline, tab, etc?
> the last character is always a comma - i want to remove the comma.
If it is on every line a comma use substr().
-Egon
--
http://www.linuxtag.de/
http://php.net/books.php
http://www.concert-band.de/