note 30297 deleted from function.trim by betz
| From: | betz@php.net | Date: | Thu, 13 Mar 2003 22:17:27 +0000 |
| Subject: | note 30297 deleted from function.trim by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-45232@lists.php.net to get a copy of this message | ||
I tried using rtrim to remove semi-colon's from each end of a string and couldn't get it
to work:
rtrim($mystr, ";");
I then tried using trim, which also didn't work.
Instead, I used:
$mystr = substr("$mystr", 0, -1);
to remove a single character from the end of the string.