note 11256 deleted from function.substr by jimw
| From: | jimw@php.net | Date: | Thu, 20 Dec 2001 23:00:04 +0000 |
| Subject: | note 11256 deleted from function.substr by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-23520@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);