note 11256 added to substr
| From: | chrisdawg at hotmail dot com | Date: | Tue, 13 Feb 2001 06:31:27 +0000 |
| Subject: | note 11256 added to substr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-10976@lists.php.net to get a copy of this message | ||
Use this to remove the last character of a string;
$newstring = substr($oldstring, 0, strlen($oldstring)-1);
http://www.php.net/manual/en/function.substr.php